summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/inline-asm.ll
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-07-07 22:29:07 +0000
committerEric Christopher <echristo@apple.com>2011-07-07 22:29:07 +0000
commit31b5f00c4ebd870fc2745f1bed86a7b67f802210 (patch)
tree4ba92dcc7b3b2ea242ce2f3c553b8355c84739d4 /test/CodeGen/X86/inline-asm.ll
parent09ad0b6894ae4eab9837970ccd4574681097eb6e (diff)
downloadllvm-31b5f00c4ebd870fc2745f1bed86a7b67f802210.tar.gz
llvm-31b5f00c4ebd870fc2745f1bed86a7b67f802210.tar.bz2
llvm-31b5f00c4ebd870fc2745f1bed86a7b67f802210.tar.xz
Add support for the X86 'l' constraint.
Fixes PR10149 and rdar://9738585 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134648 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/inline-asm.ll')
-rw-r--r--test/CodeGen/X86/inline-asm.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/X86/inline-asm.ll b/test/CodeGen/X86/inline-asm.ll
index c66d7a8bd1..603be8aa56 100644
--- a/test/CodeGen/X86/inline-asm.ll
+++ b/test/CodeGen/X86/inline-asm.ll
@@ -23,3 +23,10 @@ define void @test4() nounwind {
tail call void asm sideeffect "bork $0", "J"(i32 37) nounwind
ret void
}
+
+; rdar://9738585
+define i32 @test5() nounwind {
+entry:
+ %0 = tail call i32 asm "test", "=l,~{dirflag},~{fpsr},~{flags}"() nounwind
+ ret i32 0
+}