summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/inline-asm.ll
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-11-19 19:31:10 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-11-19 19:31:10 +0000
commite42561ad0c98b132515db89f2994c96d93e9587b (patch)
treefe631074f8ecdffb26e84b268f3f32b04fdc9b3e /test/CodeGen/X86/inline-asm.ll
parentf0b3b74477f7305ef964ecc01d79387c839dae0e (diff)
downloadllvm-e42561ad0c98b132515db89f2994c96d93e9587b.tar.gz
llvm-e42561ad0c98b132515db89f2994c96d93e9587b.tar.bz2
llvm-e42561ad0c98b132515db89f2994c96d93e9587b.tar.xz
Handle mixed normal and early-clobber defs on inline asm.
PR14376. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168320 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 e6eb9efd8c..d201ebdc85 100644
--- a/test/CodeGen/X86/inline-asm.ll
+++ b/test/CodeGen/X86/inline-asm.ll
@@ -52,3 +52,10 @@ entry:
%0 = call { i32, i32, i32, i32, i32 } asm sideeffect "", "=&r,=&r,=&r,=&r,=&q,r,~{ecx},~{memory},~{dirflag},~{fpsr},~{flags}"(i8* %h) nounwind
ret void
}
+
+; Mix normal and EC defs of the same register.
+define i32 @pr14376() nounwind noinline {
+entry:
+ %asm = tail call i32 asm sideeffect "", "={ax},i,~{eax},~{flags},~{rax}"(i64 61) nounwind
+ ret i32 %asm
+}