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 Apr 2, 2024
1 parent e07c81a commit d6425d0
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 54 deletions.
15 changes: 6 additions & 9 deletions unittests/InstructionCountCI/FlagM/Primary.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,11 @@
]
},
"add rax, -1": {
"ExpectedInstructionCount": 4,
"ExpectedInstructionCount": 3,
"Comment": "0x05",
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffffff",
"mvn w27, w4",
"adds x26, x4, x20",
"subs x26, x4, #0x1 (1)",
"mov x4, x26"
]
},
Expand Down Expand Up @@ -1259,12 +1258,11 @@
]
},
"sub rax, -1": {
"ExpectedInstructionCount": 5,
"ExpectedInstructionCount": 4,
"Comment": "0x2D",
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffffff",
"mvn w27, w4",
"subs x26, x4, x20",
"adds x26, x4, #0x1 (1)",
"cfinv",
"mov x4, x26"
]
Expand Down Expand Up @@ -1596,12 +1594,11 @@
]
},
"cmp rax, -1": {
"ExpectedInstructionCount": 4,
"ExpectedInstructionCount": 3,
"Comment": "0x3D",
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffffff",
"mvn w27, w4",
"subs x26, x4, x20",
"adds x26, x4, #0x1 (1)",
"cfinv"
]
},
Expand Down
30 changes: 12 additions & 18 deletions unittests/InstructionCountCI/FlagM/PrimaryGroup.json
Original file line number Diff line number Diff line change
Expand Up @@ -422,12 +422,11 @@
]
},
"add rax, -256": {
"ExpectedInstructionCount": 4,
"ExpectedInstructionCount": 3,
"Comment": "GROUP1 0x81 /0",
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffff00",
"mov x27, x4",
"adds x26, x27, x20",
"subs x26, x27, #0x100 (256)",
"mov x4, x26"
]
},
Expand Down Expand Up @@ -521,12 +520,11 @@
]
},
"sub rax, -256": {
"ExpectedInstructionCount": 5,
"ExpectedInstructionCount": 4,
"Comment": "GROUP1 0x81 /5",
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffff00",
"mov x27, x4",
"subs x26, x27, x20",
"adds x26, x27, #0x100 (256)",
"cfinv",
"mov x4, x26"
]
Expand Down Expand Up @@ -560,12 +558,11 @@
]
},
"cmp rax, -256": {
"ExpectedInstructionCount": 4,
"ExpectedInstructionCount": 3,
"Comment": "GROUP1 0x81 /7",
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffff00",
"mov x27, x4",
"subs x26, x27, x20",
"adds x26, x27, #0x100 (256)",
"cfinv"
]
},
Expand Down Expand Up @@ -757,12 +754,11 @@
]
},
"add rax, -1": {
"ExpectedInstructionCount": 4,
"ExpectedInstructionCount": 3,
"Comment": "GROUP1 0x83 /0",
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffffff",
"mvn w27, w4",
"adds x26, x4, x20",
"subs x26, x4, #0x1 (1)",
"mov x4, x26"
]
},
Expand Down Expand Up @@ -860,12 +856,11 @@
]
},
"sub rax, -1": {
"ExpectedInstructionCount": 5,
"ExpectedInstructionCount": 4,
"Comment": "GROUP1 0x83 /5",
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffffff",
"mvn w27, w4",
"subs x26, x4, x20",
"adds x26, x4, #0x1 (1)",
"cfinv",
"mov x4, x26"
]
Expand Down Expand Up @@ -901,12 +896,11 @@
]
},
"cmp rax, -1": {
"ExpectedInstructionCount": 4,
"ExpectedInstructionCount": 3,
"Comment": "GROUP1 0x83 /7",
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffffff",
"mvn w27, w4",
"subs x26, x4, x20",
"adds x26, x4, #0x1 (1)",
"cfinv"
]
},
Expand Down
15 changes: 6 additions & 9 deletions unittests/InstructionCountCI/Primary.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,11 @@
]
},
"add rax, -1": {
"ExpectedInstructionCount": 4,
"ExpectedInstructionCount": 3,
"Comment": "0x05",
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffffff",
"mvn w27, w4",
"adds x26, x4, x20",
"subs x26, x4, #0x1 (1)",
"mov x4, x26"
]
},
Expand Down Expand Up @@ -1368,12 +1367,11 @@
]
},
"sub rax, -1": {
"ExpectedInstructionCount": 7,
"ExpectedInstructionCount": 6,
"Comment": "0x2D",
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffffff",
"mvn w27, w4",
"subs x26, x4, x20",
"adds x26, x4, #0x1 (1)",
"mrs x20, nzcv",
"eor w20, w20, #0x20000000",
"mov x4, x26",
Expand Down Expand Up @@ -1737,12 +1735,11 @@
]
},
"cmp rax, -1": {
"ExpectedInstructionCount": 6,
"ExpectedInstructionCount": 5,
"Comment": "0x3D",
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffffff",
"mvn w27, w4",
"subs x26, x4, x20",
"adds x26, x4, #0x1 (1)",
"mrs x20, nzcv",
"eor w20, w20, #0x20000000",
"msr nzcv, x20"
Expand Down
30 changes: 12 additions & 18 deletions unittests/InstructionCountCI/PrimaryGroup.json
Original file line number Diff line number Diff line change
Expand Up @@ -461,12 +461,11 @@
]
},
"add rax, -256": {
"ExpectedInstructionCount": 4,
"ExpectedInstructionCount": 3,
"Comment": "GROUP1 0x81 /0",
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffff00",
"mov x27, x4",
"adds x26, x27, x20",
"subs x26, x27, #0x100 (256)",
"mov x4, x26"
]
},
Expand Down Expand Up @@ -570,12 +569,11 @@
]
},
"sub rax, -256": {
"ExpectedInstructionCount": 7,
"ExpectedInstructionCount": 6,
"Comment": "GROUP1 0x81 /5",
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffff00",
"mov x27, x4",
"subs x26, x27, x20",
"adds x26, x27, #0x100 (256)",
"mrs x20, nzcv",
"eor w20, w20, #0x20000000",
"mov x4, x26",
Expand Down Expand Up @@ -613,12 +611,11 @@
]
},
"cmp rax, -256": {
"ExpectedInstructionCount": 6,
"ExpectedInstructionCount": 5,
"Comment": "GROUP1 0x81 /7",
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffff00",
"mov x27, x4",
"subs x26, x27, x20",
"adds x26, x27, #0x100 (256)",
"mrs x20, nzcv",
"eor w20, w20, #0x20000000",
"msr nzcv, x20"
Expand Down Expand Up @@ -828,12 +825,11 @@
]
},
"add rax, -1": {
"ExpectedInstructionCount": 4,
"ExpectedInstructionCount": 3,
"Comment": "GROUP1 0x83 /0",
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffffff",
"mvn w27, w4",
"adds x26, x4, x20",
"subs x26, x4, #0x1 (1)",
"mov x4, x26"
]
},
Expand Down Expand Up @@ -941,12 +937,11 @@
]
},
"sub rax, -1": {
"ExpectedInstructionCount": 7,
"ExpectedInstructionCount": 6,
"Comment": "GROUP1 0x83 /5",
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffffff",
"mvn w27, w4",
"subs x26, x4, x20",
"adds x26, x4, #0x1 (1)",
"mrs x20, nzcv",
"eor w20, w20, #0x20000000",
"mov x4, x26",
Expand Down Expand Up @@ -986,12 +981,11 @@
]
},
"cmp rax, -1": {
"ExpectedInstructionCount": 6,
"ExpectedInstructionCount": 5,
"Comment": "GROUP1 0x83 /7",
"ExpectedArm64ASM": [
"mov x20, #0xffffffffffffffff",
"mvn w27, w4",
"subs x26, x4, x20",
"adds x26, x4, #0x1 (1)",
"mrs x20, nzcv",
"eor w20, w20, #0x20000000",
"msr nzcv, x20"
Expand Down

0 comments on commit d6425d0

Please sign in to comment.