From b963b3d4a347f89b2e47732b51b1e2b580a413c5 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Fri, 14 Dec 2018 15:17:47 +0000 Subject: [PATCH] Provide hokey alternatives if no SSE or i387. --- src/microcode/cmpauxmd/i386.m4 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/microcode/cmpauxmd/i386.m4 b/src/microcode/cmpauxmd/i386.m4 index 6292a0efc..85a26ee85 100644 --- a/src/microcode/cmpauxmd/i386.m4 +++ b/src/microcode/cmpauxmd/i386.m4 @@ -1238,6 +1238,7 @@ IFSSE(` enter IMM(4),IMM(0) stmxcsr IND(REG(esp)) OP(mov,l) TW(IND(REG(esp)),REG(eax)) leave') +IFNSSE(`OP(xor,l) TW(REG(eax),REG(eax))') ret define_c_label(sse_write_mxcsr) @@ -1257,6 +1258,7 @@ IF387(` enter IMM(4),IMM(0) fnstcw IND(REG(esp)) OP(mov,w) TW(INDW(REG(esp)),REG(ax)) leave') +IFN387(`OP(xor,l) TW(REG(eax),REG(eax))') ret define_c_label(x87_write_control_word) @@ -1268,6 +1270,7 @@ IF387(` enter IMM(4),IMM(0) fnstsw IND(REG(esp)) OP(mov,w) TW(INDW(REG(esp)),REG(ax)) leave') +IFN387(`OP(xor,l) TW(REG(eax),REG(eax))') ret define_c_label(x87_read_environment) -- 2.25.1