summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/microsoft-abi-sret-and-byval.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-03-31 16:30:00 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-03-31 16:30:00 +0000
commit948f36b0a7cd62ec8a0fda3b96c5b637a074da62 (patch)
tree4793e060022d75100d0af6a2c024d4cca434c9d2 /test/CodeGenCXX/microsoft-abi-sret-and-byval.cpp
parent68d4885b9f26aeae42101f5215b20e80b14d17fb (diff)
MS ABI: Make test introduced in r205217 more robust
Don't assume any particular IR Value name, pattern match the names from the GEP instructions instead. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205218 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/microsoft-abi-sret-and-byval.cpp')
-rw-r--r--test/CodeGenCXX/microsoft-abi-sret-and-byval.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/CodeGenCXX/microsoft-abi-sret-and-byval.cpp b/test/CodeGenCXX/microsoft-abi-sret-and-byval.cpp
index 216c6f28c2..28b78b3dfe 100644
--- a/test/CodeGenCXX/microsoft-abi-sret-and-byval.cpp
+++ b/test/CodeGenCXX/microsoft-abi-sret-and-byval.cpp
@@ -277,9 +277,9 @@ struct ForwardDeclare1 {};
void fn2() { fn1(0, SmallWithDtor()); };
// WIN32-LABEL: define void @"\01?fn2@@YAXXZ"
// WIN32: %[[argmem:[^ ]*]] = alloca inalloca [[argmem_ty:<{ {}\*, %struct.SmallWithDtor }>]]
-// WIN32: getelementptr inbounds [[argmem_ty]]* %[[argmem]], i32 0, i32 1
-// WIN32: call x86_thiscallcc %struct.SmallWithDtor* @"\01??0SmallWithDtor@@QAE@XZ"(%struct.SmallWithDtor* %0)
-// WIN32: getelementptr inbounds [[argmem_ty]]* %[[argmem]], i32 0, i32 0
-// WIN32: %[[addr:[^ ]*]] = bitcast {}** %1 to void [[dst_ty:\(%struct.ForwardDeclare1\*\)\*]]*
+// WIN32: %[[gep1:[^ ]*]] = getelementptr inbounds [[argmem_ty]]* %[[argmem]], i32 0, i32 1
+// WIN32: call x86_thiscallcc %struct.SmallWithDtor* @"\01??0SmallWithDtor@@QAE@XZ"(%struct.SmallWithDtor* %[[gep1]])
+// WIN32: %[[gep2:[^ ]*]] = getelementptr inbounds [[argmem_ty]]* %[[argmem]], i32 0, i32 0
+// WIN32: %[[addr:[^ ]*]] = bitcast {}** %[[gep2]] to void [[dst_ty:\(%struct.ForwardDeclare1\*\)\*]]*
// WIN32: store void [[dst_ty]] null, void [[dst_ty]]* %[[addr]], align 4
// WIN32: call void @"\01?fn1@@YAXP6AXUForwardDeclare1@@@ZUSmallWithDtor@@@Z"([[argmem_ty]]* inalloca %[[argmem]])