From 965c6ff6cc966022250a3e86228537db9b141f6b Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Wed, 11 Jan 2023 22:11:36 -0800 Subject: [PATCH] unittests: Adds tests for CLWB and CLFLUSHOPT --- unittests/ASM/Secondary/CLFLUSHOPT.asm | 14 ++++++++++++++ unittests/ASM/Secondary/CLWB.asm | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 unittests/ASM/Secondary/CLFLUSHOPT.asm create mode 100644 unittests/ASM/Secondary/CLWB.asm 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