From 8fde505943970a7a213efb1490f39f7fafc7c0fd Mon Sep 17 00:00:00 2001 From: Wunkolo Date: Tue, 1 Jun 2021 10:21:53 -0700 Subject: [PATCH] backend/x64: Add vfpclass constants Bit-wise constants for use with the `vfpclass` instruction. --- src/dynarmic/backend/x64/constants.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/dynarmic/backend/x64/constants.h b/src/dynarmic/backend/x64/constants.h index c192205e..c2cce2f9 100644 --- a/src/dynarmic/backend/x64/constants.h +++ b/src/dynarmic/backend/x64/constants.h @@ -46,6 +46,18 @@ constexpr u8 b = 0b11001100; constexpr u8 c = 0b10101010; } // namespace Tern +// For use as a bitmask with vfpclass instruction +namespace FpClass { +constexpr u8 QNaN = 0b00000001; +constexpr u8 ZeroPos = 0b00000010; +constexpr u8 ZeroNeg = 0b00000100; +constexpr u8 InfPos = 0b00001000; +constexpr u8 InfNeg = 0b00010000; +constexpr u8 Denormal = 0b00100000; +constexpr u8 Negative = 0b01000000; // Negative finite value +constexpr u8 SNaN = 0b10000000; +} // namespace FpClass + // Opcodes for use with vfixupimm enum class FpFixup : u8 { A = 0b0000, // A