aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/Mips/msa/test_elm_insve.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/Mips/msa/test_elm_insve.s')
-rw-r--r--test/MC/Mips/msa/test_elm_insve.s18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/MC/Mips/msa/test_elm_insve.s b/test/MC/Mips/msa/test_elm_insve.s
new file mode 100644
index 0000000..d63d687
--- /dev/null
+++ b/test/MC/Mips/msa/test_elm_insve.s
@@ -0,0 +1,18 @@
+# RUN: llvm-mc %s -triple=mipsel-unknown-linux -show-encoding -mcpu=mips32r2 -mattr=+msa -arch=mips | FileCheck %s
+#
+# RUN: llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 -mattr=+msa -arch=mips -filetype=obj -o - | llvm-objdump -d -triple=mipsel-unknown-linux -mattr=+msa -arch=mips - | FileCheck %s -check-prefix=CHECKOBJDUMP
+#
+# CHECK: insve.b $w25[3], $w9[0] # encoding: [0x79,0x43,0x4e,0x59]
+# CHECK: insve.h $w24[2], $w2[0] # encoding: [0x79,0x62,0x16,0x19]
+# CHECK: insve.w $w0[2], $w13[0] # encoding: [0x79,0x72,0x68,0x19]
+# CHECK: insve.d $w3[0], $w18[0] # encoding: [0x79,0x78,0x90,0xd9]
+
+# CHECKOBJDUMP: insve.b $w25[3], $w9[0]
+# CHECKOBJDUMP: insve.h $w24[2], $w2[0]
+# CHECKOBJDUMP: insve.w $w0[2], $w13[0]
+# CHECKOBJDUMP: insve.d $w3[0], $w18[0]
+
+ insve.b $w25[3], $w9[0]
+ insve.h $w24[2], $w2[0]
+ insve.w $w0[2], $w13[0]
+ insve.d $w3[0], $w18[0]