PR target/28158
* config/i386/i386.md (*negdf2_1): Restrict pattern to
TARGET_SSE2 targets if using SSE math.
(*absdf2_1): Likewise.
* gfortran.dg/pr28158.f90: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115203
138bc75d-0d04-0410-961f-
82ee72b054a4
2006-07-05 Richard Guenther <rguenther@suse.de>
+ PR target/28158
+ * config/i386/i386.md (*negdf2_1): Restrict pattern to
+ TARGET_SSE2 targets if using SSE math.
+ (*absdf2_1): Likewise.
+
+2006-07-05 Richard Guenther <rguenther@suse.de>
+
PR tree-optimization/28162
* fold-const.c (fold_binary): For (-A) * (-B) -> A * B
make sure to convert the operands to the correct type.
(define_insn "*negdf2_1"
[(set (match_operand:DF 0 "register_operand" "=f")
(neg:DF (match_operand:DF 1 "register_operand" "0")))]
- "TARGET_80387 && (reload_completed || !TARGET_SSE_MATH)"
+ "TARGET_80387 && (reload_completed || !(TARGET_SSE2 && TARGET_SSE_MATH))"
"fchs"
[(set_attr "type" "fsgn")
(set_attr "mode" "DF")])
(define_insn "*absdf2_1"
[(set (match_operand:DF 0 "register_operand" "=f")
(abs:DF (match_operand:DF 1 "register_operand" "0")))]
- "TARGET_80387 && (reload_completed || !TARGET_SSE_MATH)"
+ "TARGET_80387 && (reload_completed || !(TARGET_SSE2 && TARGET_SSE_MATH))"
"fabs"
[(set_attr "type" "fsgn")
(set_attr "mode" "DF")])
2006-07-05 Richard Guenther <rguenther@suse.de>
+ PR target/28158
+ * gfortran.dg/pr28158.f90: New testcase.
+
+2006-07-05 Richard Guenther <rguenther@suse.de>
+
PR tree-optimization/28162
* gcc.dg/pr28162.c: New testcase.
--- /dev/null
+! { dg-do compile { target i?86-*-* x86_64-*-* } }
+! { dg-require-effective-target ilp32 }
+! { dg-options "-O -msse -mfpmath=sse" }
+ subroutine yhalf(z)
+ complex cdexpj,z
+ z=cdexpj((0.d0,1.d0)*z)
+ end