summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/mozilla-ms-inline-asm.c
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-11-28 20:52:19 +0000
committerReid Kleckner <rnk@google.com>2016-11-28 20:52:19 +0000
commit08ebbcebb984b115ad1feb5984306f46cacdc616 (patch)
tree4235190f7af45df3e553586de92c6b0ab6f2d62b /clang/test/CodeGen/mozilla-ms-inline-asm.c
parent115efcd3d12e3617d0a2ee02499b379c67c2c5cb (diff)
downloadbcm5719-llvm-08ebbcebb984b115ad1feb5984306f46cacdc616.tar.gz
bcm5719-llvm-08ebbcebb984b115ad1feb5984306f46cacdc616.zip
[MS] Mangle a unique ID into all MS inline asm labels
This solves PR23715 in a way that is compatible with LTO. MSVC supports jumping to source-level labels and between inline asm blocks, but we don't. Also revert the old solution, r255201, which was to mark these calls as noduplicate. llvm-svn: 288059
Diffstat (limited to 'clang/test/CodeGen/mozilla-ms-inline-asm.c')
-rw-r--r--clang/test/CodeGen/mozilla-ms-inline-asm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGen/mozilla-ms-inline-asm.c b/clang/test/CodeGen/mozilla-ms-inline-asm.c
index b8b7a2d677d..b15595632d2 100644
--- a/clang/test/CodeGen/mozilla-ms-inline-asm.c
+++ b/clang/test/CodeGen/mozilla-ms-inline-asm.c
@@ -20,7 +20,7 @@ void invoke(void* that, unsigned methodIndex,
// CHECK: call void asm sideeffect inteldialect
// CHECK: mov edx,dword ptr $1
// CHECK: test edx,edx
-// CHECK: jz {{[^_]*}}__MSASMLABEL_.0__noparams
+// CHECK: jz {{[^_]*}}__MSASMLABEL_.{:uid}__noparams
// ^ Can't use {{.*}} here because the matching is greedy.
// CHECK: mov eax,edx
// CHECK: shl eax,$$3
@@ -28,7 +28,7 @@ void invoke(void* that, unsigned methodIndex,
// CHECK: mov ecx,esp
// CHECK: push dword ptr $0
// CHECK: call dword ptr $2
-// CHECK: {{.*}}__MSASMLABEL_.0__noparams:
+// CHECK: {{.*}}__MSASMLABEL_.{:uid}__noparams:
// CHECK: mov ecx,dword ptr $3
// CHECK: push ecx
// CHECK: mov edx,[ecx]
OpenPOWER on IntegriCloud