Skip to content

Commit

Permalink
InstCountCI: Update
Browse files Browse the repository at this point in the history
Signed-off-by: Alyssa Rosenzweig <[email protected]>
  • Loading branch information
alyssarosenzweig committed Jan 23, 2024
1 parent 836835b commit 01072fe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 34 deletions.
24 changes: 7 additions & 17 deletions unittests/InstructionCountCI/FlagM/VEX_map_group.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
]
},
"blsmsk eax, ebx": {
"ExpectedInstructionCount": 13,
"ExpectedInstructionCount": 8,
"Comment": [
"Map group 17 0b010 32-bit"
],
Expand All @@ -53,34 +53,24 @@
"sub x21, x20, #0x1 (1)",
"eor x21, x21, x20",
"mov w4, w21",
"mov w22, #0x50000000",
"mrs x23, nzcv",
"bic x22, x23, x22",
"cmp x20, #0x0 (0)",
"cset x20, eq",
"msr nzcv, x22",
"rmif x20, #63, #nzCv",
"lsr w20, w21, #31",
"rmif x20, #61, #Nzcv"
"tst w21, w21",
"rmif x20, #63, #nzCv"
]
},
"blsmsk rax, rbx": {
"ExpectedInstructionCount": 11,
"ExpectedInstructionCount": 6,
"Comment": [
"Map group 17 0b010 64-bit"
],
"ExpectedArm64ASM": [
"sub x20, x7, #0x1 (1)",
"eor x4, x20, x7",
"mov w20, #0x50000000",
"mrs x21, nzcv",
"bic x20, x21, x20",
"cmp x7, #0x0 (0)",
"cset x21, eq",
"msr nzcv, x20",
"rmif x21, #63, #nzCv",
"lsr x20, x4, #63",
"rmif x20, #61, #Nzcv"
"cset x20, eq",
"tst x4, x4",
"rmif x20, #63, #nzCv"
]
},
"blsi eax, ebx": {
Expand Down
26 changes: 9 additions & 17 deletions unittests/InstructionCountCI/VEX_map_group.json
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@
]
},
"blsmsk eax, ebx": {
"ExpectedInstructionCount": 15,
"ExpectedInstructionCount": 10,
"Comment": [
"Map group 17 0b010 32-bit"
],
Expand All @@ -652,35 +652,27 @@
"sub x21, x20, #0x1 (1)",
"eor x21, x21, x20",
"mov w4, w21",
"mov w22, #0x50000000",
"mrs x23, nzcv",
"bic x22, x23, x22",
"cmp x20, #0x0 (0)",
"cset x20, eq",
"mov w0, w22",
"bfi w0, w20, #29, #1",
"mov w20, w0",
"lsr w21, w21, #31",
"bfi w20, w21, #31, #1",
"tst w21, w21",
"mrs x21, nzcv",
"orr w20, w21, w20, lsl #29",
"msr nzcv, x20"
]
},
"blsmsk rax, rbx": {
"ExpectedInstructionCount": 11,
"ExpectedInstructionCount": 8,
"Comment": [
"Map group 17 0b010 64-bit"
],
"ExpectedArm64ASM": [
"sub x20, x7, #0x1 (1)",
"eor x4, x20, x7",
"mov w20, #0x50000000",
"mrs x21, nzcv",
"bic x20, x21, x20",
"cmp x7, #0x0 (0)",
"cset x21, eq",
"bfi w20, w21, #29, #1",
"lsr x21, x4, #63",
"bfi w20, w21, #31, #1",
"cset x20, eq",
"tst x4, x4",
"mrs x21, nzcv",
"orr w20, w21, w20, lsl #29",
"msr nzcv, x20"
]
},
Expand Down

0 comments on commit 01072fe

Please sign in to comment.