From 82e014cf5c369498666d7beac7b3079b5afa7f03 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Sat, 12 Sep 2026 18:11:15 -0700 Subject: [PATCH] InstcountCI: Add big moffset instructions Found out these weren't testing 64-bit immediates, so make sure it is. --- unittests/InstructionCountCI/Primary.json | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/unittests/InstructionCountCI/Primary.json b/unittests/InstructionCountCI/Primary.json index c689f97d4..5d07deddd 100644 --- a/unittests/InstructionCountCI/Primary.json +++ b/unittests/InstructionCountCI/Primary.json @@ -2872,6 +2872,18 @@ "ldr x4, [x20]" ] }, + "mov rax, [qword 0x8888e0000008]": { + "ExpectedInstructionCount": 4, + "Comment": [ + "0xa3" + ], + "ExpectedArm64ASM": [ + "mov x20, #0x8", + "movk x20, #0xe000, lsl #16", + "movk x20, #0x8888, lsl #32", + "ldr x4, [x20]" + ] + }, "mov eax, [qword 0xe0000000]": { "ExpectedInstructionCount": 2, "Comment": [ @@ -2893,6 +2905,18 @@ "str x4, [x20]" ] }, + "mov [qword 0x8888e0000008], rax": { + "ExpectedInstructionCount": 4, + "Comment": [ + "0xa3" + ], + "ExpectedArm64ASM": [ + "mov x20, #0x8", + "movk x20, #0xe000, lsl #16", + "movk x20, #0x8888, lsl #32", + "str x4, [x20]" + ] + }, "mov [qword 0xe0000000], eax": { "ExpectedInstructionCount": 2, "Comment": [