From ec43d1f553cb440df1b435d3798063d0cba6a117 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Thu, 17 Nov 2011 07:04:00 +0000 Subject: [PATCH] Remove seemingly unnecessary duplicate VROUND definitions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144885 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86InstrSSE.td | 84 ++--------------------------------- 1 file changed, 4 insertions(+), 80 deletions(-) diff --git a/lib/Target/X86/X86InstrSSE.td b/lib/Target/X86/X86InstrSSE.td index 92f2195d24c..78decb51548 100644 --- a/lib/Target/X86/X86InstrSSE.td +++ b/lib/Target/X86/X86InstrSSE.td @@ -6014,13 +6014,13 @@ let ExeDomain = SSEPackedSingle in { OpSize; // Vector intrinsic operation, mem - def PSm : Ii8, - TA, OpSize, Requires<[HasSSE41]>; + OpSize; } // ExeDomain = SSEPackedSingle let ExeDomain = SSEPackedDouble in { @@ -6043,42 +6043,6 @@ let ExeDomain = SSEPackedDouble in { } // ExeDomain = SSEPackedDouble } -multiclass sse41_fp_unop_rm_avx_p opcps, bits<8> opcpd, - RegisterClass RC, X86MemOperand x86memop, string OpcodeStr> { -let ExeDomain = SSEPackedSingle in { - // Intrinsic operation, reg. - // Vector intrinsic operation, reg - def PSr_AVX : SS4AIi8, OpSize; - - // Vector intrinsic operation, mem - def PSm_AVX : Ii8, TA, OpSize, Requires<[HasSSE41]>; -} // ExeDomain = SSEPackedSingle - -let ExeDomain = SSEPackedDouble in { - // Vector intrinsic operation, reg - def PDr_AVX : SS4AIi8, OpSize; - - // Vector intrinsic operation, mem - def PDm_AVX : SS4AIi8, OpSize; -} // ExeDomain = SSEPackedDouble -} - multiclass sse41_fp_binop_rm opcss, bits<8> opcsd, string OpcodeStr, Intrinsic F32Int, @@ -6132,39 +6096,6 @@ let ExeDomain = GenericDomain in { } // ExeDomain = GenericDomain } -multiclass sse41_fp_binop_rm_avx_s opcss, bits<8> opcsd, - string OpcodeStr> { -let ExeDomain = GenericDomain in { - // Intrinsic operation, reg. - def SSr_AVX : SS4AIi8, OpSize; - - // Intrinsic operation, mem. - def SSm_AVX : SS4AIi8, OpSize; - - // Intrinsic operation, reg. - def SDr_AVX : SS4AIi8, OpSize; - - // Intrinsic operation, mem. - def SDm_AVX : SS4AIi8, OpSize; -} // ExeDomain = GenericDomain -} - // FP round - roundss, roundps, roundsd, roundpd let Predicates = [HasAVX] in { // Intrinsic form @@ -6179,13 +6110,6 @@ let Predicates = [HasAVX] in { defm VROUND : sse41_fp_binop_rm<0x0A, 0x0B, "vround", int_x86_sse41_round_ss, int_x86_sse41_round_sd, 0>, VEX_4V, VEX_LIG; - - // Instructions for the assembler - defm VROUND : sse41_fp_unop_rm_avx_p<0x08, 0x09, VR128, f128mem, "vround">, - VEX; - defm VROUNDY : sse41_fp_unop_rm_avx_p<0x08, 0x09, VR256, f256mem, "vround">, - VEX; - defm VROUND : sse41_fp_binop_rm_avx_s<0x0A, 0x0B, "vround">, VEX_4V, VEX_LIG; } defm ROUND : sse41_fp_unop_rm<0x08, 0x09, "round", f128mem, VR128, @@ -6223,11 +6147,11 @@ def VPTESTYrm : SS48I<0x17, MRMSrcMem, (outs), (ins VR256:$src1, i256mem:$src2), let Defs = [EFLAGS] in { def PTESTrr : SS48I<0x17, MRMSrcReg, (outs), (ins VR128:$src1, VR128:$src2), - "ptest \t{$src2, $src1|$src1, $src2}", + "ptest\t{$src2, $src1|$src1, $src2}", [(set EFLAGS, (X86ptest VR128:$src1, (v4f32 VR128:$src2)))]>, OpSize; def PTESTrm : SS48I<0x17, MRMSrcMem, (outs), (ins VR128:$src1, f128mem:$src2), - "ptest \t{$src2, $src1|$src1, $src2}", + "ptest\t{$src2, $src1|$src1, $src2}", [(set EFLAGS, (X86ptest VR128:$src1, (memopv4f32 addr:$src2)))]>, OpSize; } -- 2.34.1