aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-08-25 00:16:14 +0000
committerDale Johannesen <dalej@apple.com>2009-08-25 00:16:14 +0000
commitf6163dc85691bbccccd029c607d1d5f0b2944fd9 (patch)
tree7fe358743d70553e40dc8d2bd2d2e00679d33a8d /test
parentf63097f223459a2f1125ab68afd61b364eda9312 (diff)
downloadexternal_llvm-f6163dc85691bbccccd029c607d1d5f0b2944fd9.zip
external_llvm-f6163dc85691bbccccd029c607d1d5f0b2944fd9.tar.gz
external_llvm-f6163dc85691bbccccd029c607d1d5f0b2944fd9.tar.bz2
Fix PR 4751, another difficulty with %a modifier on x86.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79961 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/asm-modifier.ll20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/CodeGen/X86/asm-modifier.ll b/test/CodeGen/X86/asm-modifier.ll
index 8bd5509..10a362f 100644
--- a/test/CodeGen/X86/asm-modifier.ll
+++ b/test/CodeGen/X86/asm-modifier.ll
@@ -19,3 +19,23 @@ entry:
%asmtmp = tail call i16 asm "movw\09%gs:${1:a}, ${0:w}", "=r,ir,~{dirflag},~{fpsr},~{flags}"(i32 %address) nounwind ; <i16> [#uses=1]
ret i16 %asmtmp
}
+
+@n = global i32 42 ; <i32*> [#uses=3]
+@y = common global i32 0 ; <i32*> [#uses=3]
+
+define void @test3() nounwind {
+entry:
+; CHECK: test3:
+; CHECK: movl _n, %eax
+ call void asm sideeffect "movl ${0:a}, %eax", "ir,~{dirflag},~{fpsr},~{flags},~{eax}"(i32* @n) nounwind
+ ret void
+}
+
+define void @test4() nounwind {
+entry:
+; CHECK: test4:
+; CHECK: movl L_y$non_lazy_ptr, %ecx
+; CHECK: movl (%ecx), %eax
+ call void asm sideeffect "movl ${0:a}, %eax", "ir,~{dirflag},~{fpsr},~{flags},~{eax}"(i32* @y) nounwind
+ ret void
+}