Skip to content

Commit

Permalink
InstcountCI: Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonicadvance1 committed Feb 24, 2025
1 parent e718fc3 commit 00bed2f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 44 deletions.
15 changes: 7 additions & 8 deletions unittests/InstructionCountCI/Crypto/H0F38.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,17 @@
]
},
"sha1msg2 xmm0, xmm1": {
"ExpectedInstructionCount": 7,
"ExpectedInstructionCount": 6,
"Comment": [
"0x66 0x0f 0x38 0xca"
],
"ExpectedArm64ASM": [
"rev64 v2.4s, v16.4s",
"ext v2.16b, v2.16b, v2.16b, #8",
"rev64 v3.4s, v17.4s",
"ext v3.16b, v3.16b, v3.16b, #8",
"sha1su1 v2.4s, v3.4s",
"rev64 v2.4s, v2.4s",
"ext v16.16b, v2.16b, v2.16b, #8"
"ldr x0, [x28, #2096]",
"ldr q2, [x0, #432]",
"tbl v3.16b, {v16.16b}, v2.16b",
"tbl v4.16b, {v17.16b}, v2.16b",
"sha1su1 v3.4s, v4.4s",
"tbl v16.16b, {v3.16b}, v2.16b"
]
},
"sha256msg1 xmm0, xmm1": {
Expand Down
68 changes: 32 additions & 36 deletions unittests/InstructionCountCI/Crypto/H0F3A.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,75 +79,71 @@
]
},
"sha1rnds4 xmm0, xmm1, 00b": {
"ExpectedInstructionCount": 10,
"ExpectedInstructionCount": 9,
"Comment": [
"0x66 0x0f 0x3a 0xcc"
],
"ExpectedArm64ASM": [
"ldr q2, [x28, #2960]",
"movi v3.2d, #0x0",
"rev64 v4.4s, v16.4s",
"ext v4.16b, v4.16b, v4.16b, #8",
"rev64 v5.4s, v17.4s",
"ext v5.16b, v5.16b, v5.16b, #8",
"add v2.4s, v5.4s, v2.4s",
"sha1c q4, s3, v2.4s",
"rev64 v2.4s, v4.4s",
"ext v16.16b, v2.16b, v2.16b, #8"
"ldr x0, [x28, #2096]",
"ldr q4, [x0, #432]",
"tbl v5.16b, {v16.16b}, v4.16b",
"tbl v6.16b, {v17.16b}, v4.16b",
"add v2.4s, v6.4s, v2.4s",
"sha1c q5, s3, v2.4s",
"tbl v16.16b, {v5.16b}, v4.16b"
]
},
"sha1rnds4 xmm0, xmm1, 01b": {
"ExpectedInstructionCount": 10,
"ExpectedInstructionCount": 9,
"Comment": [
"0x66 0x0f 0x3a 0xcc"
],
"ExpectedArm64ASM": [
"ldr q2, [x28, #2976]",
"movi v3.2d, #0x0",
"rev64 v4.4s, v16.4s",
"ext v4.16b, v4.16b, v4.16b, #8",
"rev64 v5.4s, v17.4s",
"ext v5.16b, v5.16b, v5.16b, #8",
"add v2.4s, v5.4s, v2.4s",
"sha1p q4, s3, v2.4s",
"rev64 v2.4s, v4.4s",
"ext v16.16b, v2.16b, v2.16b, #8"
"ldr x0, [x28, #2096]",
"ldr q4, [x0, #432]",
"tbl v5.16b, {v16.16b}, v4.16b",
"tbl v6.16b, {v17.16b}, v4.16b",
"add v2.4s, v6.4s, v2.4s",
"sha1p q5, s3, v2.4s",
"tbl v16.16b, {v5.16b}, v4.16b"
]
},
"sha1rnds4 xmm0, xmm1, 10b": {
"ExpectedInstructionCount": 10,
"ExpectedInstructionCount": 9,
"Comment": [
"0x66 0x0f 0x3a 0xcc"
],
"ExpectedArm64ASM": [
"ldr q2, [x28, #2992]",
"movi v3.2d, #0x0",
"rev64 v4.4s, v16.4s",
"ext v4.16b, v4.16b, v4.16b, #8",
"rev64 v5.4s, v17.4s",
"ext v5.16b, v5.16b, v5.16b, #8",
"add v2.4s, v5.4s, v2.4s",
"sha1m q4, s3, v2.4s",
"rev64 v2.4s, v4.4s",
"ext v16.16b, v2.16b, v2.16b, #8"
"ldr x0, [x28, #2096]",
"ldr q4, [x0, #432]",
"tbl v5.16b, {v16.16b}, v4.16b",
"tbl v6.16b, {v17.16b}, v4.16b",
"add v2.4s, v6.4s, v2.4s",
"sha1m q5, s3, v2.4s",
"tbl v16.16b, {v5.16b}, v4.16b"
]
},
"sha1rnds4 xmm0, xmm1, 11b": {
"ExpectedInstructionCount": 10,
"ExpectedInstructionCount": 9,
"Comment": [
"0x66 0x0f 0x3a 0xcc"
],
"ExpectedArm64ASM": [
"ldr q2, [x28, #3008]",
"movi v3.2d, #0x0",
"rev64 v4.4s, v16.4s",
"ext v4.16b, v4.16b, v4.16b, #8",
"rev64 v5.4s, v17.4s",
"ext v5.16b, v5.16b, v5.16b, #8",
"add v2.4s, v5.4s, v2.4s",
"sha1p q4, s3, v2.4s",
"rev64 v2.4s, v4.4s",
"ext v16.16b, v2.16b, v2.16b, #8"
"ldr x0, [x28, #2096]",
"ldr q4, [x0, #432]",
"tbl v5.16b, {v16.16b}, v4.16b",
"tbl v6.16b, {v17.16b}, v4.16b",
"add v2.4s, v6.4s, v2.4s",
"sha1p q5, s3, v2.4s",
"tbl v16.16b, {v5.16b}, v4.16b"
]
}
}
Expand Down

0 comments on commit 00bed2f

Please sign in to comment.