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 target/53291] New: Code generated for xtest is wrong


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53291

             Bug #: 53291
           Summary: Code generated for xtest is wrong
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: kirill.yukhin@intel.com


Hi, 
Andi discovered that xtest instruction generation is wrong.
It generates

  xorl    %esi, %esi
  xtest
  sete    %sil

but correct is reverse

  movl $1,%esi
  xtest
  setne %sil


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