Files
FEX-Emu--FEX/unittests/InstructionCountCI/FlagM/Secondary_REP.json
T
2026-09-04 08:30:03 +02:00

129 lines
3.0 KiB
JSON

{
"Features": {
"Bitness": 64,
"EnabledHostFeatures": [
"FLAGM",
"FLAGM2"
],
"DisabledHostFeatures": [
"SVE128",
"SVE256",
"RPRES",
"AFP",
"CSSC"
],
"BinaryCacheVersion": 13
},
"Instructions": {
"popcnt ax, bx": {
"ExpectedInstructionCount": 9,
"Comment": "0xf3 0x0f 0xb8",
"ExpectedArm64ASM": [
"uxth w20, w6",
"fmov s0, w20",
"cnt v0.8b, v0.8b",
"addp v0.8b, v0.8b, v0.8b",
"umov w20, v0.b[0]",
"bfxil x4, x20, #0, #16",
"mov w27, #0x0",
"cmp w20, #0x0 (0)",
"mov w26, #0x1"
]
},
"popcnt eax, ebx": {
"ExpectedInstructionCount": 7,
"Comment": "0xf3 0x0f 0xb8",
"ExpectedArm64ASM": [
"fmov s0, w6",
"cnt v0.8b, v0.8b",
"addv b0, v0.8b",
"umov w4, v0.b[0]",
"mov w27, #0x0",
"cmp w4, #0x0 (0)",
"mov w26, #0x1"
]
},
"popcnt rax, rbx": {
"ExpectedInstructionCount": 7,
"Comment": "0xf3 0x0f 0xb8",
"ExpectedArm64ASM": [
"fmov d0, x6",
"cnt v0.8b, v0.8b",
"addv b0, v0.8b",
"umov w4, v0.b[0]",
"mov w27, #0x0",
"cmp w4, #0x0 (0)",
"mov w26, #0x1"
]
},
"tzcnt ax, bx": {
"ExpectedInstructionCount": 7,
"Comment": "0xf3 0x0f 0xbc",
"ExpectedArm64ASM": [
"rbit w20, w6",
"orr w20, w20, #0x8000",
"clz w20, w20",
"bfxil x4, x20, #0, #16",
"cmn wzr, w20, lsl #16",
"eor x20, x20, #0x10",
"rmif x20, #3, #nzCv"
]
},
"tzcnt eax, ebx": {
"ExpectedInstructionCount": 5,
"Comment": "0xf3 0x0f 0xbc",
"ExpectedArm64ASM": [
"rbit w4, w6",
"clz w4, w4",
"cmp w4, #0x0 (0)",
"eor x20, x4, #0x20",
"rmif x20, #4, #nzCv"
]
},
"tzcnt rax, rbx": {
"ExpectedInstructionCount": 5,
"Comment": "0xf3 0x0f 0xbc",
"ExpectedArm64ASM": [
"rbit x4, x6",
"clz x4, x4",
"cmp x4, #0x0 (0)",
"eor x20, x4, #0x40",
"rmif x20, #5, #nzCv"
]
},
"lzcnt ax, bx": {
"ExpectedInstructionCount": 7,
"Comment": "0xf3 0x0f 0xbd",
"ExpectedArm64ASM": [
"lsl w20, w6, #16",
"orr w20, w20, #0x8000",
"clz w20, w20",
"bfxil x4, x20, #0, #16",
"cmn wzr, w20, lsl #16",
"eor x20, x20, #0x10",
"rmif x20, #3, #nzCv"
]
},
"lzcnt eax, ebx": {
"ExpectedInstructionCount": 4,
"Comment": "0xf3 0x0f 0xbd",
"ExpectedArm64ASM": [
"clz w4, w6",
"cmp w4, #0x0 (0)",
"eor x20, x4, #0x20",
"rmif x20, #4, #nzCv"
]
},
"lzcnt rax, rbx": {
"ExpectedInstructionCount": 4,
"Comment": "0xf3 0x0f 0xbd",
"ExpectedArm64ASM": [
"clz x4, x6",
"cmp x4, #0x0 (0)",
"eor x20, x4, #0x40",
"rmif x20, #5, #nzCv"
]
}
}
}