InstCountCI: Update

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
Alyssa Rosenzweig 2024-08-13 08:40:43 -04:00
parent 40812efaae
commit ffac98051f
8 changed files with 3586 additions and 3777 deletions

View File

@ -17,14 +17,13 @@
"ExpectedInstructionCount": 2,
"ExpectedArm64ASM": [
"mov x20, #0xfffffffffffffeff",
"ldrb w4, [x5, w20, sxtw]"
"ldrb w4, [x5, x20, sxtx]"
]
},
"movzx eax, byte [ecx - 256]": {
"ExpectedInstructionCount": 2,
"ExpectedInstructionCount": 1,
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffff00",
"ldrb w4, [x5, w20, sxtw]"
"ldurb w4, [x5, #-256]"
]
},
"movzx eax, byte [ecx + 255]": {
@ -56,14 +55,13 @@
"ExpectedInstructionCount": 2,
"ExpectedArm64ASM": [
"mov x20, #0xfffffffffffffeff",
"ldrh w4, [x5, w20, sxtw]"
"ldrh w4, [x5, x20, sxtx]"
]
},
"movzx eax, word [ecx - 256]": {
"ExpectedInstructionCount": 2,
"ExpectedInstructionCount": 1,
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffff00",
"ldrh w4, [x5, w20, sxtw]"
"ldurh w4, [x5, #-256]"
]
},
"movzx eax, word [ecx + 255]": {
@ -102,14 +100,13 @@
"ExpectedInstructionCount": 2,
"ExpectedArm64ASM": [
"mov x20, #0xfffffffffffffeff",
"ldr w4, [x5, w20, sxtw]"
"ldr w4, [x5, x20, sxtx]"
]
},
"mov eax, dword [ecx - 256]": {
"ExpectedInstructionCount": 2,
"ExpectedInstructionCount": 1,
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffff00",
"ldr w4, [x5, w20, sxtw]"
"ldur w4, [x5, #-256]"
]
},
"mov eax, dword [ecx + 255]": {
@ -182,14 +179,13 @@
"ExpectedInstructionCount": 2,
"ExpectedArm64ASM": [
"mov x20, #0xfffffffffffffeff",
"ldr s16, [x5, w20, sxtw]"
"ldr s16, [x5, x20, sxtx]"
]
},
"movss xmm0, [ecx - 256]": {
"ExpectedInstructionCount": 2,
"ExpectedInstructionCount": 1,
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffff00",
"ldr s16, [x5, w20, sxtw]"
"ldur s16, [x5, #-256]"
]
},
"movss xmm0, [ecx + 255]": {
@ -232,14 +228,13 @@
"ExpectedInstructionCount": 2,
"ExpectedArm64ASM": [
"mov x20, #0xfffffffffffffeff",
"ldr d16, [x5, w20, sxtw]"
"ldr d16, [x5, x20, sxtx]"
]
},
"movsd xmm0, [ecx - 256]": {
"ExpectedInstructionCount": 2,
"ExpectedInstructionCount": 1,
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffff00",
"ldr d16, [x5, w20, sxtw]"
"ldur d16, [x5, #-256]"
]
},
"movsd xmm0, [ecx + 255]": {
@ -282,14 +277,13 @@
"ExpectedInstructionCount": 2,
"ExpectedArm64ASM": [
"mov x20, #0xfffffffffffffeff",
"ldr d16, [x5, w20, sxtw]"
"ldr d16, [x5, x20, sxtx]"
]
},
"movq xmm0, [ecx - 256]": {
"ExpectedInstructionCount": 2,
"ExpectedInstructionCount": 1,
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffff00",
"ldr d16, [x5, w20, sxtw]"
"ldur d16, [x5, #-256]"
]
},
"movq xmm0, [ecx + 255]": {

View File

@ -1024,7 +1024,7 @@
]
},
"Sekiro spill block": {
"ExpectedInstructionCount": 148,
"ExpectedInstructionCount": 134,
"Comment": [
"This block of code came from the settings screen when it loaded",
"It was originally at RIP: 0x14232cca0 and has been deobfuscated"
@ -1173,8 +1173,7 @@
"ldr w11, [x6, #32]",
"mov w20, #0x13",
"mul w4, w5, w20",
"mov w21, w5",
"str w21, [x8, #104]",
"str w5, [x8, #104]",
"mov w21, #0x1000000",
"add w4, w4, w21",
"lsr w4, w4, #25",
@ -1214,42 +1213,34 @@
"sub w9, w9, w5",
"asr w6, w6, #26",
"add w29, w29, w6",
"mov w20, w10",
"str w20, [x4]",
"str w10, [x4]",
"mov w12, w29",
"lsl w6, w6, #26",
"asr w12, w12, #25",
"sub w19, w19, w6",
"add w16, w16, w12",
"mov w20, w9",
"str w20, [x4, #4]",
"str w9, [x4, #4]",
"mov w13, w16",
"lsl w12, w12, #25",
"asr w13, w13, #26",
"sub w29, w29, w12",
"add w17, w17, w13",
"mov w20, w19",
"str w20, [x4, #8]",
"str w19, [x4, #8]",
"lsl w13, w13, #26",
"mov w14, w17",
"asr w14, w14, #25",
"sub w16, w16, w13",
"add w15, w15, w14",
"mov w20, w29",
"str w20, [x4, #12]",
"mov w20, w15",
"str w20, [x8, #112]",
"str w29, [x4, #12]",
"str w15, [x8, #112]",
"mov x10, x4",
"asr w15, w15, #26",
"add w7, w7, w15",
"mov w20, w16",
"str w20, [x4, #16]",
"mov w20, w7",
"str w20, [x8, #120]",
"str w16, [x4, #16]",
"str w7, [x8, #120]",
"asr w7, w7, #25",
"add w11, w11, w7",
"mov w20, w11",
"str w20, [x8]",
"str w11, [x8]",
"asr w11, w11, #26",
"ldr w20, [x8, #104]",
"add w20, w20, w11",
@ -1257,28 +1248,23 @@
"lsl w14, w14, #25",
"ldr w5, [x8, #104]",
"sub w17, w17, w14",
"mov w20, w17",
"str w20, [x4, #20]",
"str w17, [x4, #20]",
"ldr w4, [x8, #112]",
"lsl w15, w15, #26",
"sub w4, w4, w15",
"lsl w7, w7, #25",
"mov w20, w4",
"str w20, [x10, #24]",
"str w4, [x10, #24]",
"ldr w4, [x8, #120]",
"sub w4, w4, w7",
"lsl w11, w11, #26",
"mov w20, w4",
"str w20, [x10, #28]",
"str w4, [x10, #28]",
"ldr w4, [x8]",
"sub w4, w4, w11",
"mov w20, w4",
"str w20, [x10, #32]",
"str w4, [x10, #32]",
"mov w4, w5",
"and w4, w4, #0xfe000000",
"sub w5, w5, w4",
"mov w20, w5",
"str w20, [x10, #36]",
"str w5, [x10, #36]",
"mvn w27, w8",
"adds x26, x8, #0x18 (24)",
"mov x8, x26",

View File

@ -218,7 +218,7 @@
]
},
"bytemark fpemu": {
"ExpectedInstructionCount": 13,
"ExpectedInstructionCount": 10,
"Comment": [
"Saw this in bytemark"
],
@ -235,16 +235,13 @@
"ExpectedArm64ASM": [
"ldrh w14, [x6, #4]",
"ldrh w11, [x6, #6]",
"mov w20, w11",
"str w20, [x8, #12]",
"str w11, [x8, #12]",
"ldrh w7, [x6, #8]",
"ldrh w11, [x6, #10]",
"mov w20, w11",
"str w20, [x8, #16]",
"str w11, [x8, #16]",
"add x12, x15, x15, lsl #1",
"add x20, x17, #0x4 (4)",
"add x20, x20, x12, lsl #2",
"ldr x27, [x20]",
"add x20, x17, x12, lsl #2",
"ldur x27, [x20, #4]",
"subs x26, x27, #0x0 (0)"
]
},

View File

@ -79,7 +79,7 @@
]
},
"dxvk hotblock from MGRR": {
"ExpectedInstructionCount": 39,
"ExpectedInstructionCount": 34,
"Comment": [
"Hottest block in Metal Gear Rising: Revengeance render thread"
],
@ -102,25 +102,20 @@
"ExpectedArm64ASM": [
"ldr w6, [x4, #12]",
"ldr w4, [x4, #8]",
"mov x20, #0xffffffffffffffcc",
"str w10, [x9, w20, sxtw]",
"stur w10, [x9, #-52]",
"mov x5, x4",
"mov x7, x6",
"mov x20, #0xffffffffffffffdc",
"ldr w10, [x9, w20, sxtw]",
"ldur w10, [x9, #-36]",
"mov w20, #0xffffffff",
"adds w5, w5, w20",
"mvn w27, w7",
"adcs w26, w7, w20",
"mov x7, x26",
"mov x20, #0xffffffffffffffd8",
"str w5, [x9, w20, sxtw]",
"mov x20, #0xffffffffffffffd4",
"str w7, [x9, w20, sxtw]",
"stur w5, [x9, #-40]",
"stur w7, [x9, #-44]",
"mov x7, x5",
"mov x21, #0xffffffffffffffd0",
"str w5, [x9, w21, sxtw]",
"ldr w5, [x9, w20, sxtw]",
"stur w5, [x9, #-48]",
"ldur w5, [x9, #-44]",
"add w20, w10, #0x8 (8)",
"mov w22, w4",
"mov w23, w6",
@ -142,7 +137,7 @@
]
},
"Psychonauts matrix swizzle": {
"ExpectedInstructionCount": 164,
"ExpectedInstructionCount": 145,
"Comment": [
"Hottest block in Windows Psychonauts",
"Doing a 4x4 32-bit float matrix swizzle",
@ -259,151 +254,132 @@
"subs w26, w8, #0x44 (68)",
"mov x27, x8",
"mov x8, x26",
"mov x20, #0xffffffffffffffbc",
"str w5, [x9, w20, sxtw]",
"ldr w4, [x9, w20, sxtw]",
"stur w5, [x9, #-68]",
"ldur w4, [x9, #-68]",
"ldr s2, [x4]",
"mov x21, #0xffffffffffffffc0",
"sub w22, w9, #0x40 (64)",
"str s2, [x22]",
"ldr w5, [x9, w20, sxtw]",
"sub w20, w9, #0x40 (64)",
"str s2, [x20]",
"ldur w5, [x9, #-68]",
"ldr s2, [x5, #16]",
"mov x22, #0xffffffffffffffc4",
"sub w23, w9, #0x3c (60)",
"str s2, [x23]",
"ldr w6, [x9, w20, sxtw]",
"sub w20, w9, #0x3c (60)",
"str s2, [x20]",
"ldur w6, [x9, #-68]",
"ldr s2, [x6, #32]",
"mov x23, #0xffffffffffffffc8",
"sub w24, w9, #0x38 (56)",
"str s2, [x24]",
"ldr w4, [x9, w20, sxtw]",
"sub w20, w9, #0x38 (56)",
"str s2, [x20]",
"ldur w4, [x9, #-68]",
"ldr s2, [x4, #48]",
"mov x24, #0xffffffffffffffcc",
"sub w25, w9, #0x34 (52)",
"str s2, [x25]",
"ldr w5, [x9, w20, sxtw]",
"sub w20, w9, #0x34 (52)",
"str s2, [x20]",
"ldur w5, [x9, #-68]",
"ldr s2, [x5, #4]",
"mov x25, #0xffffffffffffffd0",
"sub w12, w9, #0x30 (48)",
"str s2, [x12]",
"ldr w6, [x9, w20, sxtw]",
"sub w20, w9, #0x30 (48)",
"str s2, [x20]",
"ldur w6, [x9, #-68]",
"ldr s2, [x6, #20]",
"mov x12, #0xffffffffffffffd4",
"sub w13, w9, #0x2c (44)",
"str s2, [x13]",
"ldr w4, [x9, w20, sxtw]",
"sub w20, w9, #0x2c (44)",
"str s2, [x20]",
"ldur w4, [x9, #-68]",
"ldr s2, [x4, #36]",
"mov x13, #0xffffffffffffffd8",
"sub w14, w9, #0x28 (40)",
"str s2, [x14]",
"ldr w5, [x9, w20, sxtw]",
"sub w20, w9, #0x28 (40)",
"str s2, [x20]",
"ldur w5, [x9, #-68]",
"ldr s2, [x5, #52]",
"mov x14, #0xffffffffffffffdc",
"sub w15, w9, #0x24 (36)",
"str s2, [x15]",
"ldr w6, [x9, w20, sxtw]",
"sub w20, w9, #0x24 (36)",
"str s2, [x20]",
"ldur w6, [x9, #-68]",
"ldr s2, [x6, #8]",
"mov x15, #0xffffffffffffffe0",
"sub w16, w9, #0x20 (32)",
"str s2, [x16]",
"ldr w4, [x9, w20, sxtw]",
"sub w20, w9, #0x20 (32)",
"str s2, [x20]",
"ldur w4, [x9, #-68]",
"ldr s2, [x4, #24]",
"mov x16, #0xffffffffffffffe4",
"sub w17, w9, #0x1c (28)",
"str s2, [x17]",
"ldr w5, [x9, w20, sxtw]",
"sub w20, w9, #0x1c (28)",
"str s2, [x20]",
"ldur w5, [x9, #-68]",
"ldr s2, [x5, #40]",
"mov x17, #0xffffffffffffffe8",
"sub w29, w9, #0x18 (24)",
"str s2, [x29]",
"ldr w6, [x9, w20, sxtw]",
"sub w20, w9, #0x18 (24)",
"str s2, [x20]",
"ldur w6, [x9, #-68]",
"ldr s2, [x6, #56]",
"mov x29, #0xffffffffffffffec",
"sub w30, w9, #0x14 (20)",
"str s2, [x30]",
"ldr w4, [x9, w20, sxtw]",
"sub w20, w9, #0x14 (20)",
"str s2, [x20]",
"ldur w4, [x9, #-68]",
"ldr s2, [x4, #12]",
"mov x30, #0xfffffffffffffff0",
"sub w19, w9, #0x10 (16)",
"str s2, [x19]",
"ldr w5, [x9, w20, sxtw]",
"sub w20, w9, #0x10 (16)",
"str s2, [x20]",
"ldur w5, [x9, #-68]",
"ldr s2, [x5, #28]",
"mov x19, #0xfffffffffffffff4",
"sub w19, w9, #0xc (12)",
"str s2, [x19]",
"ldr w6, [x9, w20, sxtw]",
"sub w20, w9, #0xc (12)",
"str s2, [x20]",
"ldur w6, [x9, #-68]",
"ldr s2, [x6, #44]",
"mov x19, #0xfffffffffffffff8",
"sub w19, w9, #0x8 (8)",
"str s2, [x19]",
"ldr w4, [x9, w20, sxtw]",
"sub w20, w9, #0x8 (8)",
"str s2, [x20]",
"ldur w4, [x9, #-68]",
"ldr s2, [x4, #60]",
"mov x20, #0xfffffffffffffffc",
"sub w19, w9, #0x4 (4)",
"str s2, [x19]",
"sub w20, w9, #0x4 (4)",
"str s2, [x20]",
"ldr w5, [x9, #8]",
"ldr s2, [x9, w21, sxtw]",
"ldur s2, [x9, #-64]",
"str s2, [x5]",
"ldr w6, [x9, #8]",
"ldr s2, [x9, w22, sxtw]",
"add w21, w6, #0x4 (4)",
"str s2, [x21]",
"ldur s2, [x9, #-60]",
"add w20, w6, #0x4 (4)",
"str s2, [x20]",
"ldr w4, [x9, #8]",
"ldr s2, [x9, w23, sxtw]",
"add w21, w4, #0x8 (8)",
"str s2, [x21]",
"ldur s2, [x9, #-56]",
"add w20, w4, #0x8 (8)",
"str s2, [x20]",
"ldr w5, [x9, #8]",
"ldr s2, [x9, w24, sxtw]",
"add w21, w5, #0xc (12)",
"str s2, [x21]",
"ldur s2, [x9, #-52]",
"add w20, w5, #0xc (12)",
"str s2, [x20]",
"ldr w6, [x9, #8]",
"ldr s2, [x9, w25, sxtw]",
"add w21, w6, #0x10 (16)",
"str s2, [x21]",
"ldur s2, [x9, #-48]",
"add w20, w6, #0x10 (16)",
"str s2, [x20]",
"ldr w4, [x9, #8]",
"ldr s2, [x9, w12, sxtw]",
"add w21, w4, #0x14 (20)",
"str s2, [x21]",
"ldur s2, [x9, #-44]",
"add w20, w4, #0x14 (20)",
"str s2, [x20]",
"ldr w5, [x9, #8]",
"ldr s2, [x9, w13, sxtw]",
"add w21, w5, #0x18 (24)",
"str s2, [x21]",
"ldur s2, [x9, #-40]",
"add w20, w5, #0x18 (24)",
"str s2, [x20]",
"ldr w6, [x9, #8]",
"ldr s2, [x9, w14, sxtw]",
"add w21, w6, #0x1c (28)",
"str s2, [x21]",
"ldur s2, [x9, #-36]",
"add w20, w6, #0x1c (28)",
"str s2, [x20]",
"ldr w4, [x9, #8]",
"ldr s2, [x9, w15, sxtw]",
"add w21, w4, #0x20 (32)",
"str s2, [x21]",
"ldur s2, [x9, #-32]",
"add w20, w4, #0x20 (32)",
"str s2, [x20]",
"ldr w5, [x9, #8]",
"ldr s2, [x9, w16, sxtw]",
"add w21, w5, #0x24 (36)",
"str s2, [x21]",
"ldur s2, [x9, #-28]",
"add w20, w5, #0x24 (36)",
"str s2, [x20]",
"ldr w6, [x9, #8]",
"ldr s2, [x9, w17, sxtw]",
"add w21, w6, #0x28 (40)",
"str s2, [x21]",
"ldur s2, [x9, #-24]",
"add w20, w6, #0x28 (40)",
"str s2, [x20]",
"ldr w4, [x9, #8]",
"ldr s2, [x9, w29, sxtw]",
"add w21, w4, #0x2c (44)",
"str s2, [x21]",
"ldur s2, [x9, #-20]",
"add w20, w4, #0x2c (44)",
"str s2, [x20]",
"ldr w5, [x9, #8]",
"ldr s2, [x9, w30, sxtw]",
"add w21, w5, #0x30 (48)",
"str s2, [x21]",
"ldur s2, [x9, #-16]",
"add w20, w5, #0x30 (48)",
"str s2, [x20]",
"ldr w6, [x9, #8]",
"mov x21, #0xfffffffffffffff4",
"ldr s2, [x9, w21, sxtw]",
"add w21, w6, #0x34 (52)",
"str s2, [x21]",
"ldur s2, [x9, #-12]",
"add w20, w6, #0x34 (52)",
"str s2, [x20]",
"ldr w4, [x9, #8]",
"mov x21, #0xfffffffffffffff8",
"ldr s2, [x9, w21, sxtw]",
"add w21, w4, #0x38 (56)",
"str s2, [x21]",
"ldur s2, [x9, #-8]",
"add w20, w4, #0x38 (56)",
"str s2, [x20]",
"ldr w5, [x9, #8]",
"ldr s2, [x9, w20, sxtw]",
"ldur s2, [x9, #-4]",
"add w20, w5, #0x3c (60)",
"str s2, [x20]",
"ldr w4, [x9, #8]",

View File

@ -3167,7 +3167,7 @@
]
},
"Block5": {
"ExpectedInstructionCount": 971,
"ExpectedInstructionCount": 970,
"x86Insts": [
"fld dword [esp + 0x80]",
"fsub dword [esp + 0x7c]",
@ -4167,9 +4167,8 @@
"cset x20, hi",
"strb w20, [x8, #48]",
"ldrb w4, [x8, #48]",
"add w20, w10, #0x4 (4)",
"add w20, w20, w4, lsl #1",
"ldrh w20, [x20]",
"add w20, w10, w4, lsl #1",
"ldrh w20, [x20, #4]",
"sxth w4, w20",
"str w4, [x8, #8]",
"str w7, [x8, #4]",

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -2074,27 +2074,24 @@
]
},
"mov [rax], bl": {
"ExpectedInstructionCount": 2,
"ExpectedInstructionCount": 1,
"Comment": "0x88",
"ExpectedArm64ASM": [
"uxtb w20, w7",
"strb w20, [x4]"
"strb w7, [x4]"
]
},
"mov [rax], bx": {
"ExpectedInstructionCount": 2,
"ExpectedInstructionCount": 1,
"Comment": "0x89",
"ExpectedArm64ASM": [
"uxth w20, w7",
"strh w20, [x4]"
"strh w7, [x4]"
]
},
"mov [rax], ebx": {
"ExpectedInstructionCount": 2,
"ExpectedInstructionCount": 1,
"Comment": "0x89",
"ExpectedArm64ASM": [
"mov w20, w7",
"str w20, [x4]"
"str w7, [x4]"
]
},
"mov [rax], rbx": {
@ -2826,16 +2823,15 @@
]
},
"db 0x67, 0xa3; dd 0xe0000000": {
"ExpectedInstructionCount": 4,
"ExpectedInstructionCount": 3,
"Comment": [
"mov [0xe0000000], eax",
"0xa3"
],
"ExpectedArm64ASM": [
"mov w20, w4",
"mov w21, #0x6f6d",
"movk w21, #0x7376, lsl #16",
"str w20, [x21]"
"mov w20, #0x6f6d",
"movk w20, #0x7376, lsl #16",
"str w4, [x20]"
]
},
"movsb": {