summaryrefslogtreecommitdiff
path: root/test/MC
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-04-18 00:52:44 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-04-18 00:52:44 +0000
commit26aef5b7d64e2dd2ed49123baf1e1075b648824f (patch)
treedebdc4fc1f522e6bf496d2f0d50fd88561da2a6d /test/MC
parent86924b4182537745659f2660244f3402c1e1ca4d (diff)
downloadllvm-26aef5b7d64e2dd2ed49123baf1e1075b648824f.tar.gz
llvm-26aef5b7d64e2dd2ed49123baf1e1075b648824f.tar.bz2
llvm-26aef5b7d64e2dd2ed49123baf1e1075b648824f.tar.xz
[mips] DSP-ASE move from HI/LO register instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/Disassembler/Mips/mips-dsp.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/MC/Disassembler/Mips/mips-dsp.txt b/test/MC/Disassembler/Mips/mips-dsp.txt
new file mode 100644
index 0000000000..d10e62cd23
--- /dev/null
+++ b/test/MC/Disassembler/Mips/mips-dsp.txt
@@ -0,0 +1,13 @@
+# RUN: llvm-mc -triple=mipsel-unknown-linux -mattr=+dsp -disassemble < %s | FileCheck %s
+
+# CHECK: mfhi $21, $ac3
+0x10 0xa8 0x60 0x00
+
+# CHECK: mflo $21, $ac3
+0x12 0xa8 0x60 0x00
+
+# CHECK: mthi $21, $ac3
+0x11 0x18 0xa0 0x02
+
+# CHECK: mtlo $21, $ac3
+0x13 0x18 0xa0 0x02