Julian Seward 39ae27adc6 Add a test for LOOPNEL. See #256669.
(Jakub Jelinek <jakub@redhat.com>)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11507
2011-01-21 20:59:52 +00:00

12 lines
213 B
C

#include <stdio.h>
int
main (void)
{
long rcx = 0x200000005UL;
long rax = 5UL;
asm volatile ("1: addq $1, %0; loopnel 1b" : "+a" (rax), "+c" (rcx) : : "cc");
printf ("%ld %ld\n", rax, rcx);
return 0;
}