This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/11662] New: [SPARC] -O1: wrong code for expr. with cast to long long and exclusive or


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;}




}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]