Skip to content

Commit

Permalink
instcountci: X87 code simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
pmatos committed Oct 24, 2024
1 parent 5f6c0d2 commit 11a87c2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
13 changes: 6 additions & 7 deletions unittests/InstructionCountCI/FlagM/x87_f64.json
Original file line number Diff line number Diff line change
Expand Up @@ -6247,23 +6247,22 @@
]
},
"frstor [rax]": {
"ExpectedInstructionCount": 317,
"ExpectedInstructionCount": 316,
"Comment": [
"0xdd !11b /4"
],
"ExpectedArm64ASM": [
"ldrh w20, [x4]",
"lsr w21, w20, #10",
"and w21, w21, #0x3",
"rbit w1, w21",
"strh w20, [x28, #1296]",
"lsr w20, w20, #10",
"and w20, w20, #0x3",
"rbit w1, w20",
"lsr w1, w1, #30",
"mrs x0, fpcr",
"bfi x0, x1, #22, #2",
"lsr x1, x21, #2",
"lsr x1, x20, #2",
"bfi x0, x1, #24, #1",
"msr fpcr, x0",
"strh w20, [x28, #1296]",
"strh w20, [x28, #1296]",
"ldr w20, [x4, #4]",
"ubfx w21, w20, #11, #3",
"strb w21, [x28, #1019]",
Expand Down
13 changes: 6 additions & 7 deletions unittests/InstructionCountCI/x87_f64.json
Original file line number Diff line number Diff line change
Expand Up @@ -6286,23 +6286,22 @@
]
},
"frstor [rax]": {
"ExpectedInstructionCount": 317,
"ExpectedInstructionCount": 316,
"Comment": [
"0xdd !11b /4"
],
"ExpectedArm64ASM": [
"ldrh w20, [x4]",
"lsr w21, w20, #10",
"and w21, w21, #0x3",
"rbit w1, w21",
"strh w20, [x28, #1296]",
"lsr w20, w20, #10",
"and w20, w20, #0x3",
"rbit w1, w20",
"lsr w1, w1, #30",
"mrs x0, fpcr",
"bfi x0, x1, #22, #2",
"lsr x1, x21, #2",
"lsr x1, x20, #2",
"bfi x0, x1, #24, #1",
"msr fpcr, x0",
"strh w20, [x28, #1296]",
"strh w20, [x28, #1296]",
"ldr w20, [x4, #4]",
"ubfx w21, w20, #11, #3",
"strb w21, [x28, #1019]",
Expand Down

0 comments on commit 11a87c2

Please sign in to comment.