diff --git a/unittests/ASM/Secondary/CLFLUSHOPT.asm b/unittests/ASM/Secondary/CLFLUSHOPT.asm new file mode 100644 index 000000000..a6a63338c --- /dev/null +++ b/unittests/ASM/Secondary/CLFLUSHOPT.asm @@ -0,0 +1,14 @@ +%ifdef CONFIG +{ + "RegData": { + "RAX": "1" + } +} +%endif + +mov rdx, 0xe0000000 +; Just ensures the code is executed. +clflushopt [rdx] + +mov rax, 1 +hlt diff --git a/unittests/ASM/Secondary/CLWB.asm b/unittests/ASM/Secondary/CLWB.asm new file mode 100644 index 000000000..1c4848647 --- /dev/null +++ b/unittests/ASM/Secondary/CLWB.asm @@ -0,0 +1,14 @@ +%ifdef CONFIG +{ + "RegData": { + "RAX": "1" + } +} +%endif + +mov rdx, 0xe0000000 +; Just ensures the code is executed. +clwb [rdx] + +mov rax, 1 +hlt