diff --git a/test/CodeGen/X86/2007-03-24-InlineAsmXConstraint.ll b/test/CodeGen/X86/2007-03-24-InlineAsmXConstraint.ll new file mode 100644 index 00000000000..4cfe2dc4eb3 --- /dev/null +++ b/test/CodeGen/X86/2007-03-24-InlineAsmXConstraint.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s | llc -march=x86 | grep 'psrlw $8, %xmm0' +target datalayout = "e-p:32:32" +target triple = "i686-apple-darwin9" + +define void @test() { + tail call void asm sideeffect "psrlw $0, %xmm0", "X,~{dirflag},~{fpsr},~{flags}"( i32 8 ) + ret void +} +