re PR target/28158 (ICE on complex operation with -O1 -msse)

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.

	* gfortran.dg/pr28158.f90: New testcase.

From-SVN: r115203
This commit is contained in:
Richard Guenther 2006-07-05 16:24:57 +00:00 committed by Richard Biener
parent 30a843c33c
commit dc8f520537
4 changed files with 21 additions and 2 deletions

View File

@ -1,3 +1,10 @@
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

View File

@ -9913,7 +9913,7 @@
(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")])
@ -9937,7 +9937,7 @@
(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")])

View File

@ -1,3 +1,8 @@
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

View File

@ -0,0 +1,7 @@
! { 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