This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/11662] New: [SPARC] -O1: wrong code for expr. with cast to long long and exclusive or
- From: "heinrich dot brand at fujitsu-siemens dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jul 2003 14:59:55 -0000
- Subject: [Bug optimization/11662] New: [SPARC] -O1: wrong code for expr. with cast to long long and exclusive or
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11662
Summary: [SPARC] -O1: wrong code for expr. with cast to long long
and exclusive or
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: heinrich dot brand at fujitsu-siemens dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: SunOS 5.8 sparc on Fujitsu GP700F-600
GCC host triplet: SunOS 5.8 sparc on Fujitsu GP700F-600
GCC target triplet: SunOS 5.8 sparc on Fujitsu GP700F-600
static unsigned long long r;
void Test(unsigned long a, unsigned long b, unsigned long long c){
/* Failed with: r = ( (( a ^ b ) & c) ) ; */
r = ( (( (unsigned long long)a ^ (unsigned long long)b ) & c) ) ;
return;
}
main(){
Test(1,2,3);
if(r == 3){printf("PASSED\n"); return 0;}else{printf("FAILED\n");return 1;}
}