unittests/ASM: Test BLSR/BLSMSK CF flag

This commit is contained in:
Paris Oplopoios committed 2026-08-22 15:34:13 +03:00
1 parent b563703701
commit a69daa2524
2 files changed
+32

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
%ifdef CONFIG
{
"RegData": {
"RAX": "0xFFFFFFFF",
"RCX": "1"
},
"HostFeatures": ["BMI1"]
}
%endif
mov rbx, 0xFFFFFFFF00000000
blsmsk eax, ebx
setc cl
movzx rcx, cl
hlt
+16
View File
@@ -0,0 +1,16 @@
%ifdef CONFIG
{
"RegData": {
"RAX": "0",
"RCX": "1"
},
"HostFeatures": ["BMI1"]
}
%endif
mov rbx, 0xFFFFFFFF00000000
blsr eax, ebx
setc cl
movzx rcx, cl
hlt