aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/Mips
diff options
context:
space:
mode:
authorJack Carter <jack.carter@imgtec.com>2013-09-30 17:43:04 +0000
committerJack Carter <jack.carter@imgtec.com>2013-09-30 17:43:04 +0000
commit2641f5e412ba84255d8b97f5098e3f57bf990ff1 (patch)
tree983594c66fc93ca5add8c0c2b3b8c2ff2c8a8c8b /test/MC/Mips
parent2f184eaf89bb155b423603fa827976b6d2fa5df4 (diff)
downloadexternal_llvm-2641f5e412ba84255d8b97f5098e3f57bf990ff1.zip
external_llvm-2641f5e412ba84255d8b97f5098e3f57bf990ff1.tar.gz
external_llvm-2641f5e412ba84255d8b97f5098e3f57bf990ff1.tar.bz2
[PATCH 1/4] [mips][msa] Source register of FILL instructions is GPR
and not an MSA register Patch by Matheus Almeida git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191684 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Mips')
-rw-r--r--test/MC/Mips/msa/test_2r.s15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/MC/Mips/msa/test_2r.s b/test/MC/Mips/msa/test_2r.s
new file mode 100644
index 0000000..5bdaf90
--- /dev/null
+++ b/test/MC/Mips/msa/test_2r.s
@@ -0,0 +1,15 @@
+# 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: fill.b $w30, $9 # encoding: [0x7b,0x00,0x4f,0x9e]
+# CHECK: fill.h $w31, $23 # encoding: [0x7b,0x01,0xbf,0xde]
+# CHECK: fill.w $w16, $24 # encoding: [0x7b,0x02,0xc4,0x1e]
+
+# CHECKOBJDUMP: fill.b $w30, $9
+# CHECKOBJDUMP: fill.h $w31, $23
+# CHECKOBJDUMP: fill.w $w16, $24
+
+ fill.b $w30, $9
+ fill.h $w31, $23
+ fill.w $w16, $24