This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/53291] Code generated for xtest is wrong
- From: "kirill.yukhin at intel dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 09 May 2012 16:53:12 +0000
- Subject: [Bug target/53291] Code generated for xtest is wrong
- Auto-submitted: auto-generated
- References: <bug-53291-4@http.gcc.gnu.org/bugzilla/>
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)
...