aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-10-15 01:00:00 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-10-15 01:00:00 +0000
commitb00491341778776a4d994846ca2f7fafe79c161d (patch)
tree7f051ddb11407730732092ddcae6caa1bf7c369c /test
parentb6ed641c719e3f370b0e9120823b349993c3494b (diff)
downloadexternal_llvm-b00491341778776a4d994846ca2f7fafe79c161d.zip
external_llvm-b00491341778776a4d994846ca2f7fafe79c161d.tar.gz
external_llvm-b00491341778776a4d994846ca2f7fafe79c161d.tar.bz2
[mips] Set HI/LO registers' HWEncoding field.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/Mips/mips-dsp-instructions.s31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/MC/Mips/mips-dsp-instructions.s b/test/MC/Mips/mips-dsp-instructions.s
index 83e0373..5a9e8ea 100644
--- a/test/MC/Mips/mips-dsp-instructions.s
+++ b/test/MC/Mips/mips-dsp-instructions.s
@@ -32,6 +32,22 @@
# CHECK: maddu $ac0, $8, $9 # encoding: [0x71,0x09,0x00,0x01]
# CHECK: msub $ac3, $10, $11 # encoding: [0x71,0x4b,0x18,0x04]
# CHECK: msubu $ac2, $12, $13 # encoding: [0x71,0x8d,0x10,0x05]
+# CHECK: mfhi $14, $ac1 # encoding: [0x00,0x20,0x70,0x10]
+# CHECK: mflo $15, $ac0 # encoding: [0x00,0x00,0x78,0x12]
+# CHECK: mthi $16, $ac3 # encoding: [0x02,0x00,0x18,0x11]
+# CHECK: mtlo $17, $ac2 # encoding: [0x02,0x20,0x10,0x13]
+
+# CHECK: mult $2, $3 # encoding: [0x00,0x43,0x00,0x18]
+# CHECK: multu $4, $5 # encoding: [0x00,0x85,0x00,0x19]
+# CHECK: madd $6, $7 # encoding: [0x70,0xc7,0x00,0x00]
+# CHECK: maddu $8, $9 # encoding: [0x71,0x09,0x00,0x01]
+# CHECK: msub $10, $11 # encoding: [0x71,0x4b,0x00,0x04]
+# CHECK: msubu $12, $13 # encoding: [0x71,0x8d,0x00,0x05]
+# CHECK: mfhi $14 # encoding: [0x00,0x00,0x70,0x10]
+# CHECK: mflo $15 # encoding: [0x00,0x00,0x78,0x12]
+# CHECK: mthi $16 # encoding: [0x02,0x00,0x00,0x11]
+# CHECK: mtlo $17 # encoding: [0x02,0x20,0x00,0x13]
+
precrq.qb.ph $16,$17,$18
precrq.ph.w $17,$18,$19
@@ -64,3 +80,18 @@
maddu $ac0, $8, $9
msub $ac3, $10, $11
msubu $ac2, $12, $13
+ mfhi $14, $ac1
+ mflo $15, $ac0
+ mthi $16, $ac3
+ mtlo $17, $ac2
+
+ mult $2, $3
+ multu $4, $5
+ madd $6, $7
+ maddu $8, $9
+ msub $10, $11
+ msubu $12, $13
+ mfhi $14
+ mflo $15
+ mthi $16
+ mtlo $17