Skip to content
Snippets Groups Projects
Commit dc8f5205 authored by Richard Guenther's avatar Richard Guenther Committed by Richard Biener
Browse files

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
parent 30a843c3
No related branches found
No related tags found
No related merge requests found
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> 2006-07-05 Richard Guenther <rguenther@suse.de>
PR tree-optimization/28162 PR tree-optimization/28162
......
...@@ -9913,7 +9913,7 @@ ...@@ -9913,7 +9913,7 @@
(define_insn "*negdf2_1" (define_insn "*negdf2_1"
[(set (match_operand:DF 0 "register_operand" "=f") [(set (match_operand:DF 0 "register_operand" "=f")
(neg:DF (match_operand:DF 1 "register_operand" "0")))] (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" "fchs"
[(set_attr "type" "fsgn") [(set_attr "type" "fsgn")
(set_attr "mode" "DF")]) (set_attr "mode" "DF")])
...@@ -9937,7 +9937,7 @@ ...@@ -9937,7 +9937,7 @@
(define_insn "*absdf2_1" (define_insn "*absdf2_1"
[(set (match_operand:DF 0 "register_operand" "=f") [(set (match_operand:DF 0 "register_operand" "=f")
(abs:DF (match_operand:DF 1 "register_operand" "0")))] (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" "fabs"
[(set_attr "type" "fsgn") [(set_attr "type" "fsgn")
(set_attr "mode" "DF")]) (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> 2006-07-05 Richard Guenther <rguenther@suse.de>
   
PR tree-optimization/28162 PR tree-optimization/28162
! { 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment