From 0c855a5ce3f7f276e162758a591c9214007abaee Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 3 Jun 2025 15:00:39 -0400 Subject: [PATCH] InstCountCI: Update Signed-off-by: Alyssa Rosenzweig --- unittests/InstructionCountCI/FEXOpt/MultiInst.json | 6 ++---- unittests/InstructionCountCI/Primary.json | 11 ++++------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/unittests/InstructionCountCI/FEXOpt/MultiInst.json b/unittests/InstructionCountCI/FEXOpt/MultiInst.json index 1c5fb1ddf..b042b36df 100644 --- a/unittests/InstructionCountCI/FEXOpt/MultiInst.json +++ b/unittests/InstructionCountCI/FEXOpt/MultiInst.json @@ -153,7 +153,7 @@ }, "signed div narrow": { "x86InstructionCount": 2, - "ExpectedInstructionCount": 31, + "ExpectedInstructionCount": 29, "Comment": [ "div narrowing with known smaller sources", "dividend in rdx:rax" @@ -163,9 +163,7 @@ "idiv rcx" ], "ExpectedArm64ASM": [ - "mov w20, w4", - "sbfx x20, x20, #31, #1", - "mov w5, w20", + "asr w5, w4, #31", "asr x0, x4, #63", "eor x0, x0, x5", "cbz x0, #+0x28", diff --git a/unittests/InstructionCountCI/Primary.json b/unittests/InstructionCountCI/Primary.json index 2544d7923..dd743ce9b 100644 --- a/unittests/InstructionCountCI/Primary.json +++ b/unittests/InstructionCountCI/Primary.json @@ -2598,21 +2598,18 @@ ] }, "cwd": { - "ExpectedInstructionCount": 3, + "ExpectedInstructionCount": 2, "Comment": "0x98", "ExpectedArm64ASM": [ - "uxth w20, w4", - "sbfx x20, x20, #15, #1", + "sbfx w20, w4, #15, #1", "bfxil x5, x20, #0, #16" ] }, "cdq": { - "ExpectedInstructionCount": 3, + "ExpectedInstructionCount": 1, "Comment": "0x99", "ExpectedArm64ASM": [ - "mov w20, w4", - "sbfx x20, x20, #31, #1", - "mov w5, w20" + "asr w5, w4, #31" ] }, "cqo": {