Handle mixed normal and early-clobber defs on inline asm.
[oota-llvm.git] / test / CodeGen / X86 / inline-asm.ll
index e6eb9efd8c78192fdb821c6fbbf24dc896373f32..d201ebdc85d1340a6ed7470bb3117a1265b6ef70 100644 (file)
@@ -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
+}