InstCountCI: add segment register cases

add a bit of coverage for this funny addressing corner. We do handle this
optimally but I had to write this to check ;)

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
Alyssa Rosenzweig committed 2024-06-20 11:37:35 -04:00
1 parent b2eb8aaf66
commit a474f86ea8
2 files changed
+52

No files matched your search

@@ -1025,6 +1025,32 @@
"ExpectedArm64ASM": [
"ldr x7, [x4, x5, sxtx #3]"
]
},
"mov ebx, fs:0x14": {
"ExpectedInstructionCount": 2,
"ExpectedArm64ASM": [
"ldr x20, [x28, #968]",
"ldr w7, [x20, #20]"
]
},
"mov rbx, gs:0x14": {
"ExpectedInstructionCount": 2,
"ExpectedArm64ASM": [
"ldr x20, [x28, #960]",
"ldur x7, [x20, #20]"
]
},
"Multiple segment registers": {
"x86Insts": [
"mov rax, gs:0x100",
"mov rbx, gs:0x14"
],
"ExpectedInstructionCount": 3,
"ExpectedArm64ASM": [
"ldr x20, [x28, #960]",
"ldr x4, [x20, #256]",
"ldur x7, [x20, #20]"
]
}
}
}
@@ -303,6 +303,32 @@
"ExpectedArm64ASM": [
"ldr d16, [x5, #256]"
]
},
"mov ebx, fs:0x14": {
"ExpectedInstructionCount": 2,
"ExpectedArm64ASM": [
"ldr w20, [x28, #968]",
"ldr w7, [x20, #20]"
]
},
"mov ebx, gs:0x14": {
"ExpectedInstructionCount": 2,
"ExpectedArm64ASM": [
"ldr w20, [x28, #960]",
"ldr w7, [x20, #20]"
]
},
"Multiple segment registers": {
"x86Insts": [
"mov eax, gs:0x100",
"mov ebx, gs:0x14"
],
"ExpectedInstructionCount": 3,
"ExpectedArm64ASM": [
"ldr w20, [x28, #960]",
"ldr w4, [x20, #256]",
"ldr w7, [x20, #20]"
]
}
}
}