@@ -794,7 +794,7 @@
;; Used to control the "enabled" attribute on a per-instruction basis.
(define_attr "isa" "base,x64,x64_sse2,x64_sse4,x64_sse4_noavx,x64_avx,nox64,
- sse2,sse2_noavx,sse3,sse4,sse4_noavx,avx,noavx,
+ sse_noavx,sse2,sse2_noavx,sse3,sse4,sse4_noavx,avx,noavx,
avx2,noavx2,bmi,bmi2,fma4,fma,avx512f,noavx512f,
avx512bw,noavx512bw,avx512dq,noavx512dq,
avx512vl,noavx512vl,x64_avx512dq,x64_avx512bw"
@@ -820,6 +820,8 @@
(symbol_ref "TARGET_64BIT && TARGET_AVX512BW")
(eq_attr "isa" "nox64") (symbol_ref "!TARGET_64BIT")
(eq_attr "isa" "sse2") (symbol_ref "TARGET_SSE2")
+ (eq_attr "isa" "sse_noavx")
+ (symbol_ref "TARGET_SSE && !TARGET_AVX")
(eq_attr "isa" "sse2_noavx")
(symbol_ref "TARGET_SSE2 && !TARGET_AVX")
(eq_attr "isa" "sse3") (symbol_ref "TARGET_SSE3")
@@ -590,12 +590,16 @@
punpckldq\t%0, %0
#
#"
- "TARGET_MMX_WITH_SSE && reload_completed"
+ "TARGET_SSE && reload_completed
+ && SSE_REGNO_P (REGNO (operands[0]))"
[(set (match_dup 0)
(vec_duplicate:V4SF (match_dup 1)))]
- "operands[0] = lowpart_subreg (V4SFmode, operands[0],
- GET_MODE (operands[0]));"
- [(set_attr "mmx_isa" "native,sse_noavx,avx")
+{
+ operands[0] = lowpart_subreg (V4SFmode, operands[0],
+ GET_MODE (operands[0]));
+}
+ [(set_attr "isa" "*,sse_noavx,avx")
+ (set_attr "mmx_isa" "native,*,*")
(set_attr "type" "mmxcvt,ssemov,ssemov")
(set_attr "mode" "DI,TI,TI")])
@@ -1560,12 +1564,16 @@
#
#
#"
- "TARGET_MMX_WITH_SSE && reload_completed"
+ "TARGET_SSE && reload_completed
+ && SSE_REGNO_P (REGNO (operands[0]))"
[(set (match_dup 0)
(vec_duplicate:V4SI (match_dup 1)))]
- "operands[0] = lowpart_subreg (V4SImode, operands[0],
- GET_MODE (operands[0]));"
- [(set_attr "mmx_isa" "native,sse_noavx,avx,avx")
+{
+ operands[0] = lowpart_subreg (V4SImode, operands[0],
+ GET_MODE (operands[0]));
+}
+ [(set_attr "isa" "*,sse_noavx,avx,avx")
+ (set_attr "mmx_isa" "native,*,*,*")
(set_attr "type" "mmxcvt,ssemov,ssemov,ssemov")
(set_attr "mode" "DI,TI,TI,TI")])