Skip to content

Commit b2a49ba

Browse files
committed
Fix mov's immediates' sign in test expectation
Automatic signedness in Zydis infers from the instruction. In this case, the immediate should be signed. References: zyantific/zydis#538
1 parent b4e7175 commit b2a49ba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+43
-43
lines changed

test/regtest/after.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
000000000a000108:000000000c007ff8:0000000000004600: 41 57 push %r15
33
000000000a00010a:000000000c007ff8:0000000000004600: 78 fc js 0xa000106
44
000000000a000111:000000000c007ff8:0000000000004600: 48 8b 05 5e 00 00 00 movq 0x5e(%rip), %rax
5-
000000000a00011b:000000000c007ff8:0000000000004600: 48 bb 11 22 33 44 55 66 mov $0x8877665544332211, %rbx
5+
000000000a00011b:000000000c007ff8:0000000000004600: 48 bb 11 22 33 44 55 66 mov $-0x778899aabbccddef, %rbx
66
77 88
77
000000000a00011e:000000000c007ff8:0000000000004600: 48 39 c3 cmp %rax, %rbx
88
000000000a000124:000000000c007ff8:0000000000004600: 66 90 nop

test/regtest/after_print.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ jnz 0xa0002ae
22
push %r15
33
js 0xa000106
44
movq 0x5e(%rip), %rax
5-
mov $0x8877665544332211, %rbx
5+
mov $-0x778899aabbccddef, %rbx
66
cmp %rax, %rbx
77
nop
88
nopl %eax, (%rax)

test/regtest/bb_info.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
000000000a000106:0000000000000002:0000000000000004: 41 57 push %r15
33
000000000a000106:0000000000000002:0000000000000004: 78 fc js 0xa000106
44
000000000a00010a:0000000000000004:0000000000000016: 48 8b 05 5e 00 00 00 movq 0x5e(%rip), %rax
5-
000000000a00010a:0000000000000004:0000000000000016: 48 bb 11 22 33 44 55 66 mov $0x8877665544332211, %rbx
5+
000000000a00010a:0000000000000004:0000000000000016: 48 bb 11 22 33 44 55 66 mov $-0x778899aabbccddef, %rbx
66
77 88
77
000000000a00010a:0000000000000004:0000000000000016: 48 39 c3 cmp %rax, %rbx
88
000000000a00010a:0000000000000004:0000000000000016: 74 02 jz 0xa000122

test/regtest/bit_or.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
rex=0x41, asm="push %r15"
22
rex=0x48, asm="movq 0x5e(%rip), %rax"
3-
rex=0x48, asm="mov $0x8877665544332211, %rbx"
3+
rex=0x48, asm="mov $-0x778899aabbccddef, %rbx"
44
rex=0x48, asm="cmp %rax, %rbx"
55
rex=0x4C, asm="movq 0x28(%rip), %r8"
66
rex=0x48, asm="movq 0x19a(%rip), %rcx"

test/regtest/callx2.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
movq 0x5e(%rip), %rax
22
movq 0x5e(%rip), %rax
3-
mov $0x8877665544332211, %rbx
3+
mov $-0x778899aabbccddef, %rbx
44
cmp %rax, %rbx
55
nopl %eax, (%rax)
66
movq 0x28(%rip), %r8

test/regtest/cond_0.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ jnz 0xa0002ae
22
push %r15
33
js 0xa000106
44
movq 0x5e(%rip), %rax
5-
mov $0x8877665544332211, %rbx
5+
mov $-0x778899aabbccddef, %rbx
66
cmp %rax, %rbx
77
jz 0xa000122
88
nop

test/regtest/cond_1.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ jnz 0xa0002ae
22
push %r15
33
js 0xa000106
44
movq 0x5e(%rip), %rax
5-
mov $0x8877665544332211, %rbx
5+
mov $-0x778899aabbccddef, %rbx
66
cmp %rax, %rbx
77
jz 0xa000122
88
ud2

test/regtest/condjump_0.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ jnz 0xa0002ae
22
push %r15
33
js 0xa000106
44
movq 0x5e(%rip), %rax
5-
mov $0x8877665544332211, %rbx
5+
mov $-0x778899aabbccddef, %rbx
66
cmp %rax, %rbx
77
jz 0xa000122
88
nop

test/regtest/dst_zero.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
movq 0x5e(%rip), %rax # DST 8877665544332211 --> 0x0
2-
mov $0x8877665544332211, %rbx # DST 8877665544332211 --> 0x0
2+
mov $-0x778899aabbccddef, %rbx # DST 8877665544332211 --> 0x0
33
Illegal instruction

test/regtest/example_13.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
000000000a000106:00000000e9e9e9e9:0000000000000000: 41 57 push %r15
22
000000000a00010a:8877665544332211:000000000b0b0b0b: 48 8b 05 5e 00 00 00 movq 0x5e(%rip), %rax
3-
000000000a000111:8877665544332211:000000003e3e3e3e: 48 bb 11 22 33 44 55 66 mov $0x8877665544332211, %rbx
3+
000000000a000111:8877665544332211:000000003e3e3e3e: 48 bb 11 22 33 44 55 66 mov $-0x778899aabbccddef, %rbx
44
77 88
55
000000000a000122:0000000000000000:0000000000000000: 66 90 nop
66
000000000a000128:0000000044332211:0000000000000000: 0f 1f 00 nopl %eax, (%rax)

0 commit comments

Comments
 (0)