Skip to content

Commit 57338f7

Browse files
committed
Fix asm codegen for vfpclasss* and vcvtph2* instructions when using -masm=intel
1 parent a0cb762 commit 57338f7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

gcc/config/i386/sse.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -7217,7 +7217,8 @@
72177217
[(match_operand:<ssePHmode> 1 "<round_nimm_predicate>" "<round_constraint>")]
72187218
UNSPEC_US_FIX_NOTRUNC))]
72197219
"TARGET_AVX512FP16"
7220-
"vcvtph2<sseintconvertsignprefix><sseintconvert>\t{<round_mask_op2>%1, %0<mask_operand2>|%0<mask_operand2>, %1<round_mask_op2>}"
7220+
;; %X1 so that we don't emit any *WORD PTR for -masm=intel.
7221+
"vcvtph2<sseintconvertsignprefix><sseintconvert>\t{<round_mask_op2>%1, %0<mask_operand2>|%0<mask_operand2>, %X1<round_mask_op2>}"
72217222
[(set_attr "type" "ssecvt")
72227223
(set_attr "prefix" "evex")
72237224
(set_attr "mode" "<sseinsnmode>")])
@@ -29012,7 +29013,8 @@
2901229013
UNSPEC_FPCLASS)
2901329014
(const_int 1)))]
2901429015
"TARGET_AVX512DQ || VALID_AVX512FP16_REG_MODE(<MODE>mode)"
29015-
"vfpclass<ssescalarmodesuffix>\t{%2, %1, %0<mask_scalar_merge_operand3>|%0<mask_scalar_merge_operand3>, %1, %2}";
29016+
;; %X1 so that we don't emit any *WORD PTR for -masm=intel.
29017+
"vfpclass<ssescalarmodesuffix>\t{%2, %1, %0<mask_scalar_merge_operand3>|%0<mask_scalar_merge_operand3>, %X1, %2}";
2901629018
[(set_attr "type" "sse")
2901729019
(set_attr "length_immediate" "1")
2901829020
(set_attr "prefix" "evex")

0 commit comments

Comments
 (0)