From 65285fd8d865e8e51167c0b8b4dbfeabd92b0450 Mon Sep 17 00:00:00 2001 From: Wunkolo Date: Tue, 3 Oct 2023 17:27:19 -0700 Subject: [PATCH] oaknut: Add FJCVTZS instruction --- include/oaknut/impl/mnemonics_fpsimd_v8.3.inc.hpp | 5 +++++ tests/fpsimd.cpp | 1 + 2 files changed, 6 insertions(+) diff --git a/include/oaknut/impl/mnemonics_fpsimd_v8.3.inc.hpp b/include/oaknut/impl/mnemonics_fpsimd_v8.3.inc.hpp index 197fec4..4680615 100644 --- a/include/oaknut/impl/mnemonics_fpsimd_v8.3.inc.hpp +++ b/include/oaknut/impl/mnemonics_fpsimd_v8.3.inc.hpp @@ -1,2 +1,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2023 merryhime // SPDX-License-Identifier: MIT + +void FJCVTZS(WReg wd, DReg rn) +{ + emit<"0001111001111110000000nnnnnddddd", "d", "n">(wd, rn); +} \ No newline at end of file diff --git a/tests/fpsimd.cpp b/tests/fpsimd.cpp index e0cb0e2..d606be0 100644 --- a/tests/fpsimd.cpp +++ b/tests/fpsimd.cpp @@ -200,6 +200,7 @@ T(0x6ee1b8c1, FCVTZU(V1.D2(), V6.D2())) T(0x1e3d1999, FDIV(S25, S12, S29)) T(0x1e7e1a4e, FDIV(D14, D18, D30)) T(0x2e2cfe45, FDIV(V5.S2(), V18.S2(), V12.S2())) +T(0x1e7e0131, FJCVTZS(W17, D9)) T(0x1f114362, FMADD(S2, S27, S17, S16)) T(0x1f482240, FMADD(D0, D18, D8, D8)) T(0x1e234b5f, FMAX(S31, S26, S3))