summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorHendiadyoin1 <leon.a@serenityos.org>2022-04-01 13:55:38 +0200
committerAndreas Kling <kling@serenityos.org>2022-04-02 18:37:38 +0200
commitb7a8cfdde98ea9380d2ea89a47fc16776dec8650 (patch)
tree2cf176eee69f992abb808d4e5181ae0c3c9285d8 /Userland/Libraries
parent1432b6ab0aee535dcb6abca0cfe394baab5795ac (diff)
downloadserenity-b7a8cfdde98ea9380d2ea89a47fc16776dec8650.zip
LibX86: Correctly name CVTTSS2SI_r32_xmm2m32
This was previously erroneously called CVTTPS2PI_r32_xmm2m32, while the mnemonic was correctly CVTTSS2SI.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibX86/Instruction.cpp2
-rw-r--r--Userland/Libraries/LibX86/Interpreter.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibX86/Instruction.cpp b/Userland/Libraries/LibX86/Instruction.cpp
index 0d6fbc98e5..806f7a4f88 100644
--- a/Userland/Libraries/LibX86/Instruction.cpp
+++ b/Userland/Libraries/LibX86/Instruction.cpp
@@ -867,7 +867,7 @@ static void build_sse_f3(u8 op, char const* mnemonic, InstructionFormat format,
build_sse_f3(0x2A, "CVTSI2SS", OP_xmm1_rm32, &Interpreter::CVTSI2SS_xmm1_rm32);
build_sse_np(0x2B, "MOVNTPS", OP_xmm1m128_xmm2, &Interpreter::MOVNTPS_xmm1m128_xmm2);
build_sse_np(0x2C, "CVTTPS2PI", OP_mm1_xmm2m64, &Interpreter::CVTTPS2PI_mm1_xmm2m64);
- build_sse_f3(0x2C, "CVTTSS2SI", OP_r32_xmm2m32, &Interpreter::CVTTPS2PI_r32_xmm2m32);
+ build_sse_f3(0x2C, "CVTTSS2SI", OP_r32_xmm2m32, &Interpreter::CVTTSS2SI_r32_xmm2m32);
build_sse_np(0x2D, "CVTPS2PI", OP_mm1_xmm2m64, &Interpreter::CVTPS2PI_xmm1_mm2m64);
build_sse_f3(0x2D, "CVTSS2SI", OP_r32_xmm2m32, &Interpreter::CVTSS2SI_xmm1_rm32);
build_sse_np(0x2E, "UCOMISS", OP_xmm1_xmm2m32, &Interpreter::UCOMISS_xmm1_xmm2m32);
diff --git a/Userland/Libraries/LibX86/Interpreter.h b/Userland/Libraries/LibX86/Interpreter.h
index d8fa0623a2..98c63aac68 100644
--- a/Userland/Libraries/LibX86/Interpreter.h
+++ b/Userland/Libraries/LibX86/Interpreter.h
@@ -676,7 +676,7 @@ public:
virtual void MOVAPS_xmm1_xmm2m128(Instruction const&) = 0;
virtual void MOVAPS_xmm1m128_xmm2(Instruction const&) = 0;
virtual void CVTTPS2PI_mm1_xmm2m64(Instruction const&) = 0;
- virtual void CVTTPS2PI_r32_xmm2m32(Instruction const&) = 0;
+ virtual void CVTTSS2SI_r32_xmm2m32(Instruction const&) = 0;
virtual void CVTPI2PS_xmm1_mm2m64(Instruction const&) = 0;
virtual void CVTSI2SS_xmm1_rm32(Instruction const&) = 0;
virtual void MOVNTPS_xmm1m128_xmm2(Instruction const&) = 0;