case MODE_DI:
/* Handle broken assemblers that require movd instead of movq. */
- if (!HAVE_AS_IX86_INTERUNIT_MOVQ
- && (GENERAL_REG_P (operands[0])
- || GENERAL_REG_P (operands[1])))
- return "%vmovd\t{%1, %0|%0, %1}";
+ if (GENERAL_REG_P (operands[0]))
+ {
+ if (HAVE_AS_IX86_INTERUNIT_MOVQ)
+ return "%vmovq\t{%1, %q0|%q0, %1}";
+ else
+ return "%vmovd\t{%1, %q0|%q0, %1}";
+ }
+ else if (GENERAL_REG_P (operands[1]))
+ {
+ if (HAVE_AS_IX86_INTERUNIT_MOVQ)
+ return "%vmovq\t{%q1, %0|%0, %q1}";
+ else
+ return "%vmovd\t{%q1, %0|%0, %q1}";
+ }
else
return "%vmovq\t{%1, %0|%0, %1}";
case MODE_SI:
- return "%vmovd\t{%1, %0|%0, %1}";
+ if (GENERAL_REG_P (operands[0]))
+ return "%vmovd\t{%1, %k0|%k0, %1}";
+ else if (GENERAL_REG_P (operands[1]))
+ return "%vmovd\t{%k1, %0|%0, %k1}";
+ else
+ return "%vmovd\t{%1, %0|%0, %1}";
case MODE_HI:
if (GENERAL_REG_P (operands[0]))
return standard_sse_constant_opcode (insn, operands);
if (SSE_REG_P (operands[0]))
- return MEM_P (operands[1])
- ? "%vpinsrw\t{$0, %1, %d0|%d0, %1, 0}"
- : "%vpinsrw\t{$0, %k1, %d0|%d0, %k1, 0}";
+ return "%vpinsrw\t{$0, %1, %d0|%d0, %1, 0}";
else
- return MEM_P (operands[0])
- ? "%vpextrw\t{$0, %1, %0|%0, %1, 0}"
- : "%vpextrw\t{$0, %1, %k0|%k0, %1, 0}";
+ return "%vpextrw\t{$0, %1, %0|%0, %1, 0}";
case TYPE_MSKLOG:
if (operands[1] == const0_rtx)
(const_string "mskmov")
(eq_attr "alternative" "8")
(const_string "msklog")
- (eq_attr "alternative" "9,10,13,14")
+ (eq_attr "alternative" "13,14")
(if_then_else (match_test "TARGET_AVX512FP16")
(const_string "ssemov")
(const_string "sselog1"))
(eq_attr "alternative" "11")
(const_string "sselog1")
- (eq_attr "alternative" "12")
+ (eq_attr "alternative" "9,10,12")
(const_string "ssemov")
(match_test "optimize_function_for_size_p (cfun)")
(const_string "imov")
]
(const_string "orig")))
(set (attr "mode")
- (cond [(eq_attr "alternative" "9,10,13,14")
+ (cond [(eq_attr "alternative" "9,10")
+ (if_then_else (match_test "TARGET_AVX512FP16")
+ (const_string "HI")
+ (const_string "SI"))
+ (eq_attr "alternative" "13,14")
(if_then_else (match_test "TARGET_AVX512FP16")
(const_string "HI")
(const_string "TI"))
return standard_sse_constant_opcode (insn, operands);
if (SSE_REG_P (operands[0]))
- return MEM_P (operands[1])
- ? "%vpinsrw\t{$0, %1, %d0|%d0, %1, 0}"
- : "%vpinsrw\t{$0, %k1, %d0|%d0, %k1, 0}";
+ return "%vpinsrw\t{$0, %1, %d0|%d0, %1, 0}";
else
- return MEM_P (operands[0])
- ? "%vpextrw\t{$0, %1, %0|%0, %1, 0}"
- : "%vpextrw\t{$0, %1, %k0|%k0, %1, 0}";
+ return "%vpextrw\t{$0, %1, %0|%0, %1, 0}";
default:
if (get_attr_mode (insn) == MODE_SI)
(set (attr "type")
(cond [(eq_attr "alternative" "4")
(const_string "sselog1")
- (eq_attr "alternative" "5")
+ (eq_attr "alternative" "5,6,8")
(const_string "ssemov")
- (eq_attr "alternative" "6,7,8,9")
+ (eq_attr "alternative" "7,9")
(if_then_else
(match_test ("TARGET_AVX512FP16"))
(const_string "ssemov")
(set (attr "mode")
(cond [(eq_attr "alternative" "4")
(const_string "V4SF")
- (eq_attr "alternative" "6,7,8,9")
+ (eq_attr "alternative" "6,8")
+ (if_then_else
+ (match_test "TARGET_AVX512FP16")
+ (const_string "HI")
+ (const_string "SI"))
+ (eq_attr "alternative" "7,9")
(if_then_else
(match_test "TARGET_AVX512FP16")
(const_string "HI")
return standard_sse_constant_opcode (insn, operands);
if (SSE_REG_P (operands[0]))
- return MEM_P (operands[1])
- ? "%vpinsrw\t{$0, %1, %d0|%d0, %1, 0}"
- : "%vpinsrw\t{$0, %k1, %d0|%d0, %k1, 0}";
+ return "%vpinsrw\t{$0, %1, %d0|%d0, %1, 0}";
else
- return MEM_P (operands[0])
- ? "%vpextrw\t{$0, %1, %0|%0, %1, 0}"
- : "%vpextrw\t{$0, %1, %k0|%k0, %1, 0}";
+ return "%vpextrw\t{$0, %1, %0|%0, %1, 0}";
case TYPE_SSEMOV:
return ix86_output_ssemov (insn, operands);
]
(const_string "*")))
(set (attr "type")
- (cond [(eq_attr "alternative" "6,7,8,9")
+ (cond [(eq_attr "alternative" "6,7")
(if_then_else (match_test "TARGET_AVX512FP16")
(const_string "ssemov")
(const_string "sselog1"))
(eq_attr "alternative" "4")
(const_string "sselog1")
- (eq_attr "alternative" "5")
+ (eq_attr "alternative" "5,8,9")
(const_string "ssemov")
(match_test "optimize_function_for_size_p (cfun)")
(const_string "imov")
]
(const_string "orig")))
(set (attr "mode")
- (cond [(eq_attr "alternative" "6,7,8,9")
+ (cond [(eq_attr "alternative" "6,7")
(if_then_else (match_test "TARGET_AVX512FP16")
(const_string "HI")
(const_string "TI"))
+ (eq_attr "alternative" "8,9")
+ (if_then_else (match_test "TARGET_AVX512FP16")
+ (const_string "HI")
+ (const_string "SI"))
(eq_attr "alternative" "4")
(cond [(match_test "TARGET_AVX")
(const_string "TI")