[Bug target/53291] Code generated for xtest is wrong
kirill.yukhin at intel dot com
gcc-bugzilla@gcc.gnu.org
Wed May 9 17:00:00 GMT 2012
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)
...
More information about the Gcc-bugs
mailing list