diff --git a/unittests/32Bit_ASM/X87/DB_E3_2.asm b/unittests/32Bit_ASM/X87/DB_E3_2.asm new file mode 100644 index 000000000..5ce00d2f1 --- /dev/null +++ b/unittests/32Bit_ASM/X87/DB_E3_2.asm @@ -0,0 +1,19 @@ +%ifdef CONFIG +{ + "RegData": { + "RAX": "0" + }, + "Mode": "32BIT" +} +%endif + +; Tests that fninit clears the status word (which includes the IE flag) +fninit +fldz +fldz +fdiv ; sets IE flag + +fninit +fnstsw ax + +hlt diff --git a/unittests/ASM/X87/DB_E3_2.asm b/unittests/ASM/X87/DB_E3_2.asm new file mode 100644 index 000000000..3798cb16d --- /dev/null +++ b/unittests/ASM/X87/DB_E3_2.asm @@ -0,0 +1,18 @@ +%ifdef CONFIG +{ + "RegData": { + "RAX": "0" + } +} +%endif + +; Tests that fninit clears the status word (which includes the IE flag) +fninit +fldz +fldz +fdiv ; sets IE flag + +fninit +fnstsw ax + +hlt