Skip to content

Commit c041233

Browse files
committed
Fix invalid asm generation with -masm=intel for some SIMD intrinsics
1 parent b3fa80f commit c041233

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

gcc/config/i386/sse.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -8736,7 +8736,7 @@
87368736
"@
87378737
cvtsd2ss\t{%2, %0|%0, %2}
87388738
cvtsd2ss\t{%2, %0|%0, %q2}
8739-
vcvtsd2ss\t{<round_mask_op3>%2, %1, %0<mask_operand3>|<mask_operand3>%0, %1, %q2<round_mask_op3>}"
8739+
vcvtsd2ss\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %q2<round_mask_op3>}"
87408740
[(set_attr "isa" "noavx,noavx,avx")
87418741
(set_attr "type" "ssecvt")
87428742
(set_attr "athlon_decode" "vector,double,*")
@@ -8780,7 +8780,7 @@
87808780
"@
87818781
cvtss2sd\t{%2, %0|%0, %2}
87828782
cvtss2sd\t{%2, %0|%0, %k2}
8783-
vcvtss2sd\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|<mask_operand3>%0, %1, %k2<round_saeonly_mask_op3>}"
8783+
vcvtss2sd\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %k2<round_saeonly_mask_op3>}"
87848784
[(set_attr "isa" "noavx,noavx,avx")
87858785
(set_attr "type" "ssecvt")
87868786
(set_attr "amdfam10_decode" "vector,double,*")
@@ -14167,8 +14167,8 @@
1416714167
"TARGET_AVX512VL"
1416814168
{
1416914169
if (GET_MODE_SIZE (GET_MODE_INNER (<MODE>mode)) == 4)
14170-
return "vpmov<trunsuffix><pmov_suff_4>\t{%1, %0%{%2%}|%0%{%2%}, %t1}";
14171-
return "vpmov<trunsuffix><pmov_suff_4>\t{%1, %0%{%2%}|%0%{%2%}, %g1}";
14170+
return "vpmov<trunsuffix><pmov_suff_4>\t{%1, %0%{%2%}|%0%{%2%}, %1}";
14171+
return "vpmov<trunsuffix><pmov_suff_4>\t{%1, %0%{%2%}|%0%{%2%}, %1}";
1417214172
}
1417314173
[(set_attr "type" "ssemov")
1417414174
(set_attr "memory" "store")
@@ -14267,7 +14267,7 @@
1426714267
(match_dup 0)
1426814268
(match_operand:QI 2 "register_operand" "Yk")))]
1426914269
"TARGET_AVX512VL"
14270-
"vpmov<trunsuffix>qw\t{%1, %0%{%2%}|%0%{%2%}, %g1}"
14270+
"vpmov<trunsuffix>qw\t{%1, %0%{%2%}|%0%{%2%}, %1}"
1427114271
[(set_attr "type" "ssemov")
1427214272
(set_attr "memory" "store")
1427314273
(set_attr "prefix" "evex")

0 commit comments

Comments
 (0)