[llvm] riscv: Added Zvinsert instructions (PR #92262)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed May 15 13:14:19 PDT 2024


================
@@ -0,0 +1,18 @@
+# RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+zvinsert -show-encoding %s | \
+# RUN:     llvm-objdump -d --mattr=+zvinsert -M no-aliases -M numeric - | \
+# RUN:     FileCheck -check-prefixes=CHECK %s
+# RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+zvinsert -show-encoding %s | \
+# RUN:     llvm-objdump -d --mattr=+zvinsert -M no-aliases -M numeric - | \
+# RUN:     FileCheck -check-prefixes=CHECK %s
+
+# CHECK: 501fb1d7      vinserti.s.x    v3, x1, 0x1f
+vinserti.s.x v3, x1, 31
----------------
topperc wrote:

Need an "-invalid" test file to test values larger than 31 are rejected

https://github.com/llvm/llvm-project/pull/92262


More information about the llvm-commits mailing list