Allow an integer to be converted into an MMX type when it's used in an inline
asm.
<rdar://problem/10106006>
llvm-svn: 151303
diff --git a/llvm/test/CodeGen/X86/2012-02-23-mmx-inlineasm.ll b/llvm/test/CodeGen/X86/2012-02-23-mmx-inlineasm.ll
new file mode 100644
index 0000000..1d239d6
--- /dev/null
+++ b/llvm/test/CodeGen/X86/2012-02-23-mmx-inlineasm.ll
@@ -0,0 +1,12 @@
+; RUN: llc -mcpu=i686 -mattr=+mmx < %s | FileCheck %s
+; <rdar://problem/10106006>
+
+define void @func() nounwind ssp {
+; CHECK: psrlw %mm0, %mm1
+entry:
+ call void asm sideeffect "psrlw $0, %mm1", "y,~{dirflag},~{fpsr},~{flags}"(i32 8) nounwind
+ unreachable
+
+bb367: ; preds = %entry
+ ret void
+}