diff --git a/lib/Target/X86/X86InstrSSE.td b/lib/Target/X86/X86InstrSSE.td index 1257651c6a3..5aee9dd23b7 100644 --- a/lib/Target/X86/X86InstrSSE.td +++ b/lib/Target/X86/X86InstrSSE.td @@ -1206,36 +1206,31 @@ let Constraints = "$src1 = $dst", neverHasSideEffects = 1 in { "cmpsd\t{$src2, $src, $dst|$dst, $src, $src2}">, XD; } -multiclass sse12_cmp_scalar_int { +multiclass sse12_cmp_scalar_int { def rr : SIi8<0xC2, MRMSrcReg, (outs VR128:$dst), (ins VR128:$src1, VR128:$src, SSECC:$cc), asm, [(set VR128:$dst, (Int VR128:$src1, VR128:$src, imm:$cc))]>; def rm : SIi8<0xC2, MRMSrcMem, (outs VR128:$dst), - (ins VR128:$src1, memopr:$src, SSECC:$cc), asm, + (ins VR128:$src1, f32mem:$src, SSECC:$cc), asm, [(set VR128:$dst, (Int VR128:$src1, - mem_cpat:$src, imm:$cc))]>; + (load addr:$src), imm:$cc))]>; } // Aliases to match intrinsics which expect XMM operand(s). - let isAsmParserOnly = 1 in { - defm Int_VCMPSS : sse12_cmp_scalar_int, XS, VEX_4V; - defm Int_VCMPSD : sse12_cmp_scalar_int, XD, VEX_4V; } let Constraints = "$src1 = $dst" in { - defm Int_CMPSS : sse12_cmp_scalar_int, XS; - defm Int_CMPSD : sse12_cmp_scalar_int, XD; } diff --git a/test/CodeGen/X86/2010-08-06-cmpsd.ll b/test/CodeGen/X86/2010-08-06-cmpsd.ll deleted file mode 100644 index 99b963f4537..00000000000 --- a/test/CodeGen/X86/2010-08-06-cmpsd.ll +++ /dev/null @@ -1,27 +0,0 @@ -; RUN: llc < %s -mtriple=x86_64-applecl-darwin11 | FileCheck %s -; 8193553 - -define void @__math_kernel_Vectorized_wrapper(<4 x double> addrspace(1)* %a, <4 x double> addrspace(1)* %b, i64 addrspace(1)* %c, i64 addrspace(1)* %d) nounwind { -entry.i: ; preds = %entry.i, %loop -; CHECK: math_kernel_Vectorized_wrapper -; CHECK-NOT: cmpordsd (%rsi), - %0 = alloca i8 - %1 = alloca i8 - %2 = alloca i8 - %tmp213.i = load <4 x double> addrspace(1)* %a ; <<4 x double>> [#uses=4] - %extract25.i = extractelement <4 x double> %tmp213.i, i32 1 ; [#uses=1] - %tmp723.i = load <4 x double> addrspace(1)* %b ; <<4 x double>> [#uses=4] - %extract29.i = extractelement <4 x double> %tmp723.i, i32 1 ; [#uses=1] - %tmp2.i26 = insertelement <2 x double> undef, double %extract25.i, i32 0 ; <<2 x double>> [#uses=1] - %tmp5.i27 = insertelement <2 x double> undef, double %extract29.i, i32 1 ; <<2 x double>> [#uses=1] - %cmpsd.i.i28 = call <2 x double> @llvm.x86.sse2.cmp.sd(<2 x double> %tmp2.i26, <2 x double> %tmp5.i27, i8 7) nounwind ; <<2 x double>> [#uses=1] - %3 = bitcast <2 x double> %cmpsd.i.i28 to <4 x i32> ; <<4 x i32>> [#uses=1] - %tmp12.i29 = extractelement <4 x i32> %3, i32 0 ; [#uses=1] - %and.i30 = and i32 %tmp12.i29, 1 ; [#uses=1] - %conv937.i36 = zext i32 %and.i30 to i64 ; [#uses=1] - store i64 %conv937.i36, i64 addrspace(1)* %d - ret void -; CHECK: ret -} - -declare <2 x double> @llvm.x86.sse2.cmp.sd(<2 x double>, <2 x double>, i8) nounwind readnone