summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPawel Wodnicki <pawel@32bitmicro.com>2012-11-23 20:02:28 +0000
committerPawel Wodnicki <pawel@32bitmicro.com>2012-11-23 20:02:28 +0000
commit12c349d44181f8083ee9120ddd3b2664c0a1fe8f (patch)
tree4a75226da917c102342e00417f3469e33a0be555 /test
parent024e48b43d3fbafe24b0205fb8b94015d43ff3a6 (diff)
downloadllvm-12c349d44181f8083ee9120ddd3b2664c0a1fe8f.tar.gz
llvm-12c349d44181f8083ee9120ddd3b2664c0a1fe8f.tar.bz2
llvm-12c349d44181f8083ee9120ddd3b2664c0a1fe8f.tar.xz
Merging r168320: into 3.2 relase branch.
Handle mixed normal and early-clobber defs on inline asm. PR14376. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_32@168527 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-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
+}