Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InstCountCI: add The Witcher 3 block #3442

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions unittests/InstructionCountCI/FlagM/HotBlocks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"Features": {
"Bitness": 64,
"EnabledHostFeatures": [
"FLAGM",
"FLAGM2"
],
"DisabledHostFeatures": [
"SVE128",
"SVE256"
]
},
"Instructions": {
"The Witcher 3": {
"ExpectedInstructionCount": 11,
"x86Insts": [
"mov eax, 0x1",
"lock xadd qword [rcx], rax",
"mov rdx, rax",
"and edx, 0x1f",
"inc rdx",
"shl rdx, 0x6",
"add rdx, rcx"
],
"ExpectedArm64ASM": [
"mov w4, #0x1",
"ldaddal x4, x4, [x5]",
"mov x6, x4",
alyssarosenzweig marked this conversation as resolved.
Show resolved Hide resolved
"and w6, w4, #0x1f",
"add x6, x6, #0x1 (1)",
"lsl x20, x6, #6",
"mov x6, x20",
"add x6, x20, x5",
"eor x27, x20, x5",
"mov x26, x6",
"cmn x20, x5"
]
}
}
}
Loading