diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-16 16:02:40 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-16 16:02:40 +0000 |
commit | 7f5e1452121a64380c56577c86163621f3adfd37 (patch) | |
tree | d6b38b416f591320af85de6bb1eed07c99063877 /tests | |
parent | f528bfd45d3456716bf49baa960142b3c8f32806 (diff) | |
download | qemu-7f5e1452121a64380c56577c86163621f3adfd37.zip qemu-7f5e1452121a64380c56577c86163621f3adfd37.tar.gz qemu-7f5e1452121a64380c56577c86163621f3adfd37.tar.bz2 |
BSR/BSF 'undefined behaviour' test
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@811 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-i386.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test-i386.c b/tests/test-i386.c index 27a8998..f7e2686 100644 --- a/tests/test-i386.c +++ b/tests/test-i386.c @@ -512,10 +512,12 @@ void test_mul(void) {\ int res, val, resz;\ val = op0;\ - asm("xorl %1, %1 ; " #op " %" size "2, %" size "0 ; setz %b1" \ + asm("xorl %1, %1\n"\ + "movl $0x12345678, %0\n"\ + #op " %" size "2, %" size "0 ; setz %b1" \ : "=r" (res), "=q" (resz)\ : "g" (val));\ - printf("%-10s A=%08x R=%08x %d\n", #op, val, resz ? 0 : res, resz);\ + printf("%-10s A=%08x R=%08x %d\n", #op, val, res, resz);\ } void test_bsx(void) |