Resolve semantics tests on AMD systems (#637)

This commit is contained in:
Spotlight
2022-10-26 13:46:58 -05:00
committed by GitHub
parent f4c3d5a743
commit 16cae5a12f
+5
View File
@@ -872,6 +872,11 @@ static void RunWithFlags(const test::TestInfo *info, Flags flags,
lifted_state->x87.fxsave.fop = 0;
native_state->x87.fxsave.fop = 0;
// On AMD systems, FXSAVE does not set x87 pointer registers.
// Even though we track `ip`, don't compare it.
lifted_state->x87.fxsave.ip = 0;
native_state->x87.fxsave.ip = 0;
// Don't compare the tag words.
lifted_state->x87.fxsave.ftw.flat = 0;
native_state->x87.fxsave.ftw.flat = 0;