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] Code generated for xtest is wrong


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

--- Comment #2 from Yukhin Kirill <kirill.yukhin at intel dot com> 2012-05-09 16:53:12 UTC ---
(In reply to comment #1)
> Testcase?

It is trivial, so posting right here:

#include <immintrin.h>
unsigned a;
int
rtm_xtest (void)
{
  if (_xtest ())
    a = 1;
}

./build-x86_64-linux/gcc/xgcc -B./build-x86_64-linux/gcc 1.c -S -mrtm
$ cat 1.s
...
        xtest
        sete    %al
        movsbl  %al, %eax
        testl   %eax, %eax
        je      .L4
        movl    $1, a(%rip)
...


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