aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-11-16 21:57:15 +0000
committerDale Johannesen <dalej@apple.com>2010-11-16 21:57:15 +0000
commite8ff69fcb5021ba8909e44ef7f89e227fa903b3b (patch)
tree9e7feccfbcf85c5b1c50758519e7164bb9fedc7c /test
parentac139f19d96cfbc82a7db357b10ef25f1dccad0e (diff)
downloadexternal_llvm-e8ff69fcb5021ba8909e44ef7f89e227fa903b3b.zip
external_llvm-e8ff69fcb5021ba8909e44ef7f89e227fa903b3b.tar.gz
external_llvm-e8ff69fcb5021ba8909e44ef7f89e227fa903b3b.tar.bz2
Test for llvm-gcc patch 119392.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/FrontendC/2010-11-16-asmblock.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/FrontendC/2010-11-16-asmblock.c b/test/FrontendC/2010-11-16-asmblock.c
new file mode 100644
index 0000000..c264223
--- /dev/null
+++ b/test/FrontendC/2010-11-16-asmblock.c
@@ -0,0 +1,16 @@
+// RUN: %llvmgcc -S %s -fasm-blocks -o - | FileCheck %s
+// XFAIL: *
+// XTARGET: x86,i386,i686
+// 84282548
+
+void foo()
+{
+// CHECK: %0 = call i32 asm sideeffect "", "={ecx}"() nounwind
+// CHECK: %asmtmp = call i32 asm sideeffect alignstack "sall $$3, $0", "={ecx},{ecx},~{dirflag},~{fpsr},~{flags},~{memory}"(i32 %0) nounwind
+// CHECK: store i32 %asmtmp, i32* %"%ecx"
+ __asm {
+ sal ecx, 3;
+ add esi, ecx;
+ add edi, ecx;
+ }
+}