Simon Scherer

Results issues of Simon Scherer

The FFI enum definition `RawInfoKindSpecific` has a mismatched memory layout compared to the tagged union it should represent in C: ```c ZydisInstructionEncoding encoding2; union { ZydisDecodedInstructionRawRex rex; ZydisDecodedInstructionRawXop xop; ZydisDecodedInstructionRawVex...

## Description In the AArch64 backend, a miscompilation occurs when a large memory offset overflows the immediate field of a stack store/load instruction in the prolog or epilog code. In...

backend:AArch64
confirmed
crash-on-valid

The function `LoadFileImpl` in `FEXCore/Source/Utils/FileLoading.cpp` line 42 always calls `pread` with an offset of `0` instead of using `CurrentOffset`: ```cpp while (CurrentOffset != FileSize && (Read = pread(FD, &Data.at(CurrentOffset), FileSize,...

The instruction `cmpxchg8b qword ptr [rbp]` gets translated to the following incorrect ARM code: ```asm mov x20, x4 mov x21, x5 caspal w20, w21, w6, w7, [x9] mrs x0, NZCV...

The translation for the instructions `pop FS`, `pop GS`, `push FS` and `push GS` when preceded by the 0x66 operand-size override prefix is incorrect in **64** bit mode. **Expected Behavior:**...

FEX fails to decode certain instructions when they are prefixed with `0x66`. For the affaceted instructions, the `0x66` prefix is not required and does not change their behavior. Real hardware...

`FLD_Const` always loads the round-to-nearest value regardless of the FPU's current rounding mode in FCW. This affects the instructions: `FLDPI`, `FLDL2E`, `FLDL2T`, `FLDLG2`, `FLDLN2`.

On an operand that is in an unsupported format (Pseudo-NaN, Pseudo-Infinity, Unnormal), FEX's F80Fallback layer either fails to detect the invalid condition or never returns indefinite value (QNaN or packed-BCD)....

`FPREM/FPREM1` get dispatched through the `OpDispatchBuilder::X87OpHelper` function unconditionally clearing C2 and never setting C0/C1/C3. Per the SDM, FPREM/FPREM1 must set C2=1 when the exponent difference between ST(0) and ST(1) exceeds...

Per the SDM, reading an x87 stack register whose tag is marked empty is a stack-underflow condition that sets IE and SF in the status word. When masked, the FPU...