X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fops.expect.c;h=834007fd539f9c362a75d9416285e22bfbc038c2;hb=f9327ad4c893cce131ab39f91743d69ebac662d1;hp=4a59e21bf5e0360d9d5e6715d212daaa82906555;hpb=7f20f63315d3097ddd97a57567facd981be9bd61;p=ia32rtools.git diff --git a/tests/ops.expect.c b/tests/ops.expect.c index 4a59e21..834007f 100644 --- a/tests/ops.expect.c +++ b/tests/ops.expect.c @@ -33,13 +33,13 @@ loop: *(u16 *)edi = eax; edi -= 2; // stos *(u32 *)edi = eax; edi -= 4; // stos edx = (s32)eax >> 31; // cdq - eax = ecx ? __builtin_ffs(ecx) - 1 : 0; // bsf + if (ecx) eax = __builtin_ffs(ecx) - 1; // bsf tmp64 = ((u64)edx << 32) | eax; - tmp64 = (s64)tmp64 <<= LOBYTE(ecx); + tmp64 = (s64)tmp64 << LOBYTE(ecx); edx = tmp64 >> 32; eax = tmp64; // allshl edi = eax; tmp64 = ((u64)edx << 32) | eax; - tmp64 = (s64)tmp64 >>= LOBYTE(ecx); + tmp64 = (s64)tmp64 >> LOBYTE(ecx); edx = tmp64 >> 32; eax = tmp64; // allshr eax = __builtin_bswap32(eax); ecx ^= eax;