From c95f9f5e6a80b296d7d21c4a3a0c18f3ae603cd0 Mon Sep 17 00:00:00 2001 From: Paulo Matos Date: Wed, 30 Jul 2025 10:47:54 +0200 Subject: [PATCH] instcountci: Implementation of FCNLEX to clear IE flag --- unittests/InstructionCountCI/FlagM/x87.json | 6 ++++-- unittests/InstructionCountCI/FlagM/x87_f64.json | 6 ++++-- unittests/InstructionCountCI/x87.json | 6 ++++-- unittests/InstructionCountCI/x87_f64.json | 6 ++++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/unittests/InstructionCountCI/FlagM/x87.json b/unittests/InstructionCountCI/FlagM/x87.json index 369f5abae..6d377fcaa 100644 --- a/unittests/InstructionCountCI/FlagM/x87.json +++ b/unittests/InstructionCountCI/FlagM/x87.json @@ -4964,11 +4964,13 @@ ] }, "fnclex": { - "ExpectedInstructionCount": 0, + "ExpectedInstructionCount": 1, "Comment": [ "0xdb 11b 0xe2 /4" ], - "ExpectedArm64ASM": [] + "ExpectedArm64ASM": [ + "strb wzr, [x28, #1008]" + ] }, "fninit": { "ExpectedInstructionCount": 8, diff --git a/unittests/InstructionCountCI/FlagM/x87_f64.json b/unittests/InstructionCountCI/FlagM/x87_f64.json index 545582584..1903cba50 100644 --- a/unittests/InstructionCountCI/FlagM/x87_f64.json +++ b/unittests/InstructionCountCI/FlagM/x87_f64.json @@ -4293,11 +4293,13 @@ ] }, "fnclex": { - "ExpectedInstructionCount": 0, + "ExpectedInstructionCount": 1, "Comment": [ "0xdb 11b 0xe2 /4" ], - "ExpectedArm64ASM": [] + "ExpectedArm64ASM": [ + "strb wzr, [x28, #1008]" + ] }, "fninit": { "ExpectedInstructionCount": 16, diff --git a/unittests/InstructionCountCI/x87.json b/unittests/InstructionCountCI/x87.json index 5b4555b06..fcb2e4341 100644 --- a/unittests/InstructionCountCI/x87.json +++ b/unittests/InstructionCountCI/x87.json @@ -4963,11 +4963,13 @@ ] }, "fnclex": { - "ExpectedInstructionCount": 0, + "ExpectedInstructionCount": 1, "Comment": [ "0xdb 11b 0xe2 /4" ], - "ExpectedArm64ASM": [] + "ExpectedArm64ASM": [ + "strb wzr, [x28, #1008]" + ] }, "fninit": { "ExpectedInstructionCount": 8, diff --git a/unittests/InstructionCountCI/x87_f64.json b/unittests/InstructionCountCI/x87_f64.json index 1a5a11734..37070704e 100644 --- a/unittests/InstructionCountCI/x87_f64.json +++ b/unittests/InstructionCountCI/x87_f64.json @@ -4314,11 +4314,13 @@ ] }, "fnclex": { - "ExpectedInstructionCount": 0, + "ExpectedInstructionCount": 1, "Comment": [ "0xdb 11b 0xe2 /4" ], - "ExpectedArm64ASM": [] + "ExpectedArm64ASM": [ + "strb wzr, [x28, #1008]" + ] }, "fninit": { "ExpectedInstructionCount": 16,