summaryrefslogtreecommitdiff
path: root/test/MC/Mips
diff options
context:
space:
mode:
authorMatheus Almeida <matheus.almeida@imgtec.com>2013-10-14 12:38:17 +0000
committerMatheus Almeida <matheus.almeida@imgtec.com>2013-10-14 12:38:17 +0000
commit01436ba3066b99547c1138edf5c36ef2ad467e71 (patch)
treeafb5d9ced08a0039e9e5605b19e53972987d0ec0 /test/MC/Mips
parent29adbe8464f74f17a7cf977ce21ef88d88d28b14 (diff)
downloadllvm-01436ba3066b99547c1138edf5c36ef2ad467e71.tar.gz
llvm-01436ba3066b99547c1138edf5c36ef2ad467e71.tar.bz2
llvm-01436ba3066b99547c1138edf5c36ef2ad467e71.tar.xz
[mips][msa] Direct Object Emission of INSVE.{b,h,w,d}.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192587 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Mips')
-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 0000000000..d63d687ddf
--- /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]