Skip to content

Commit

Permalink
Fix asm codegen for vfpclasss* and vcvtph2* instructions when using -…
Browse files Browse the repository at this point in the history
…masm=intel
  • Loading branch information
antoyo committed Oct 4, 2024
1 parent c4ee893 commit a71dd58
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gcc/config/i386/sse.md
Original file line number Diff line number Diff line change
Expand Up @@ -7548,7 +7548,8 @@
[(match_operand:<ssePHmode> 1 "<round_nimm_predicate>" "<round_constraint>")]
UNSPEC_US_FIX_NOTRUNC))]
"TARGET_AVX512FP16 && <round_mode_condition>"
"vcvtph2<sseintconvertsignprefix><sseintconvert>\t{<round_mask_op2>%1, %0<mask_operand2>|%0<mask_operand2>, %1<round_mask_op2>}"
;; %X1 so that we don't emit any *WORD PTR for -masm=intel.
"vcvtph2<sseintconvertsignprefix><sseintconvert>\t{<round_mask_op2>%1, %0<mask_operand2>|%0<mask_operand2>, %X1<round_mask_op2>}"
[(set_attr "type" "ssecvt")
(set_attr "prefix" "evex")
(set_attr "mode" "<sseinsnmode>")])
Expand Down Expand Up @@ -29820,7 +29821,8 @@
UNSPEC_FPCLASS)
(const_int 1)))]
"TARGET_AVX512DQ || VALID_AVX512FP16_REG_MODE(<MODE>mode)"
"vfpclass<ssescalarmodesuffix>\t{%2, %1, %0<mask_scalar_merge_operand3>|%0<mask_scalar_merge_operand3>, %1, %2}";
;; %X1 so that we don't emit any *WORD PTR for -masm=intel.
"vfpclass<ssescalarmodesuffix>\t{%2, %1, %0<mask_scalar_merge_operand3>|%0<mask_scalar_merge_operand3>, %X1, %2}";
[(set_attr "type" "sse")
(set_attr "length_immediate" "1")
(set_attr "prefix" "evex")
Expand Down

0 comments on commit a71dd58

Please sign in to comment.