From 31ebe5580835ca852e2bd402a4feb25ae404b7cc Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Mon, 19 Nov 2012 19:31:10 +0000 Subject: Handle mixed normal and early-clobber defs on inline asm. PR14376. llvm-svn: 168320 --- llvm/test/CodeGen/X86/inline-asm.ll | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'llvm/test/CodeGen') 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 +} -- cgit v1.2.3