;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+(define_expand "<code>v2sf2"
+ [(set (match_operand:V2SF 0 "register_operand")
+ (absneg:V2SF
+ (match_operand:V2SF 1 "register_operand")))]
+ "TARGET_MMX_WITH_SSE"
+ "ix86_expand_fp_absneg_operator (<CODE>, V2SFmode, operands); DONE;")
+
+(define_insn_and_split "*mmx_<code>v2sf2"
+ [(set (match_operand:V2SF 0 "register_operand" "=x,x")
+ (absneg:V2SF
+ (match_operand:V2SF 1 "register_operand" "%0,x")))
+ (use (match_operand:V2SF 2 "nonimmediate_operand" "x,x"))]
+ "TARGET_MMX_WITH_SSE"
+ "#"
+ "&& reload_completed"
+ [(set (match_dup 0)
+ (<absneg_op>:V2SF (match_dup 1) (match_dup 2)))]
+ ""
+ [(set_attr "isa" "noavx,avx")])
+
+(define_insn_and_split "*mmx_nabsv2sf2"
+ [(set (match_operand:V2SF 0 "register_operand" "=x,x")
+ (neg:V2SF
+ (abs:V2SF
+ (match_operand:V2SF 1 "register_operand" "%0,x"))))
+ (use (match_operand:V2SF 2 "nonimmediate_operand" "x,x"))]
+ "TARGET_MMX_WITH_SSE"
+ "#"
+ "&& reload_completed"
+ [(set (match_dup 0)
+ (ior:V2SF (match_dup 1) (match_dup 2)))]
+ ""
+ [(set_attr "isa" "noavx,avx")])
+
(define_expand "mmx_addv2sf3"
[(set (match_operand:V2SF 0 "register_operand")
(plus:V2SF
(set_attr "prefix_extra" "1")
(set_attr "mode" "V2SF")])
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;
+;; Parallel single-precision floating point logical operations
+;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+(define_insn "*mmx_andnotv2sf3"
+ [(set (match_operand:V2SF 0 "register_operand" "=x,x")
+ (and:V2SF
+ (not:V2SF
+ (match_operand:V2SF 1 "register_operand" "0,x"))
+ (match_operand:V2SF 2 "register_operand" "x,x")))]
+ "TARGET_MMX_WITH_SSE"
+ "@
+ andps\t{%2, %0|%0, %2}
+ vandps\t{%2, %1, %0|%0, %1, %2}"
+ [(set_attr "isa" "noavx,avx")
+ (set_attr "type" "sselog")
+ (set_attr "prefix" "orig,vex")
+ (set_attr "mode" "V4SF")])
+
+(define_insn "*mmx_<code>v2sf3"
+ [(set (match_operand:V2SF 0 "register_operand" "=x,x")
+ (any_logic:V2SF
+ (match_operand:V2SF 1 "register_operand" "%0,x")
+ (match_operand:V2SF 2 "register_operand" "x,x")))]
+ "TARGET_MMX_WITH_SSE"
+ "@
+ <logic>ps\t{%2, %0|%0, %2}
+ v<logic>ps\t{%2, %1, %0|%0, %1, %2}"
+ [(set_attr "isa" "noavx,avx")
+ (set_attr "type" "sselog")
+ (set_attr "prefix" "orig,vex")
+ (set_attr "mode" "V4SF")])
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; Parallel single-precision floating point conversion operations
-/* PR target/94942 */
+/* PR target/95046 */
/* { dg-do compile { target { ! ia32 } } } */
/* { dg-options "-O3 -ffast-math -msse2" } */
r[i] = a[i] + b[i];
}
-/* { dg-final { scan-assembler "addps" } } */
+/* { dg-final { scan-assembler "\tv?addps" } } */
void
test_minus (void)
r[i] = a[i] - b[i];
}
-/* { dg-final { scan-assembler "subps" } } */
+/* { dg-final { scan-assembler "\tv?subps" } } */
void
test_mult (void)
r[i] = a[i] * b[i];
}
-/* { dg-final { scan-assembler "mulps" } } */
+/* { dg-final { scan-assembler "\tv?mulps" } } */
void
test_min (void)
r[i] = a[i] < b[i] ? a[i] : b[i];
}
-/* { dg-final { scan-assembler "minps" } } */
+/* { dg-final { scan-assembler "\tv?minps" } } */
void
test_max (void)
r[i] = a[i] > b[i] ? a[i] : b[i];
}
-/* { dg-final { scan-assembler "maxps" } } */
+/* { dg-final { scan-assembler "\tv?maxps" } } */
float sqrtf (float);
r[i] = sqrtf (a[i]);
}
-/* { dg-final { scan-assembler "sqrtps" } } */
+/* { dg-final { scan-assembler "\tv?sqrtps" } } */