optimization/4578: Bug

Daniel Jungmann D-S-J@web.de
Mon Oct 15 18:16:00 GMT 2001


>Number:         4578
>Category:       optimization
>Synopsis:       MMX && Optimazation does not work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 15 18:16:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Daniel Jungmann
>Release:        3.1 20011015 (experimental)
>Organization:
>Environment:
System: Linux daniel 2.4.12 #2 Mon Okt 15 21:31:09 CEST 2001 i686 unknown
Architecture: i686

	<machine, os, target, libraries (multiple lines)>
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc/configure
>Description:
	use of MMX or 3D!Now builtins and optimazation (-O1 .. -O6) produce an 
"internal compiler error in simplify_gen_subreg, at simplify-rtx.c:2638"
>How-To-Repeat:
	typedef __v2sf __attribute__ ((mode (V2SF)));
..
	__v2sf a, b;
	long long g;
	g = 1;
	a = (__v2sf) g;
	b = a;
	b = __builtin_ia32_pfadd (a, b);
	g = (long long) b;
	if (g == 0) printf("\n");

..

>Fix:
	replace all "abort ();" with "return NULL_RTX" in function 
simplify_gen_subreg in file simplify-rtx.c
	line 2638
	line 2642
	line 2646
>Release-Note:
>Audit-Trail:
>Unformatted:
 To: gcc-gnats@gcc.gnu.org
 Subject:
 From: Daniel
 Reply-To:d-s-j@web.de
 Cc:
 X-send-pr-version: 3.113
 X-GNATS-Notify:
 
 



More information about the Gcc-bugs mailing list