diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-11-19 19:31:10 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-11-19 19:31:10 +0000 |
| commit | 31ebe5580835ca852e2bd402a4feb25ae404b7cc (patch) | |
| tree | a59727c201a1f9d1113f271356d97e46d1ab8796 /llvm/test/CodeGen | |
| parent | c6c2b9bfe85cdcfed667ee0036a5d88defdcf918 (diff) | |
| download | bcm5719-llvm-31ebe5580835ca852e2bd402a4feb25ae404b7cc.tar.gz bcm5719-llvm-31ebe5580835ca852e2bd402a4feb25ae404b7cc.zip | |
Handle mixed normal and early-clobber defs on inline asm.
PR14376.
llvm-svn: 168320
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/X86/inline-asm.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/inline-asm.ll b/llvm/test/CodeGen/X86/inline-asm.ll index e6eb9efd8c7..d201ebdc85d 100644 --- a/llvm/test/CodeGen/X86/inline-asm.ll +++ b/llvm/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 +} |

