aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/Disassembler/Mips
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-07-26 18:34:25 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-07-26 18:34:25 +0000
commit9b06dd6ca25fd1f8d2cf9227fdffc304c9f51564 (patch)
treeea0c0a8a964e5d0868e065bb16e396a2903a48d1 /test/MC/Disassembler/Mips
parentb390abce164eb5ba931ec220be02fc5f35a12b43 (diff)
downloadexternal_llvm-9b06dd6ca25fd1f8d2cf9227fdffc304c9f51564.zip
external_llvm-9b06dd6ca25fd1f8d2cf9227fdffc304c9f51564.tar.gz
external_llvm-9b06dd6ca25fd1f8d2cf9227fdffc304c9f51564.tar.bz2
[mips] Print instructions "beq", "bne" and "or" using assembler pseudo
instructions "beqz", "bnez" and "move", when possible. beq $2, $zero, $L1 => beqz $2, $L1 bne $2, $zero, $L1 => bnez $2, $L1 or $2, $3, $zero => move $2, $3 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187229 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Disassembler/Mips')
-rw-r--r--test/MC/Disassembler/Mips/mips32_le.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/MC/Disassembler/Mips/mips32_le.txt b/test/MC/Disassembler/Mips/mips32_le.txt
index a0885a4..313f59b 100644
--- a/test/MC/Disassembler/Mips/mips32_le.txt
+++ b/test/MC/Disassembler/Mips/mips32_le.txt
@@ -260,6 +260,12 @@
# CHECK: mov.s $f6, $f7
0x86 0x39 0x00 0x46
+# CHECK: move $7, $8
+0x21,0x38,0x00,0x01
+
+# CHECK: move $3, $2
+0x25,0x18,0x40,0x00
+
# CHECK: msub $6, $7
0x04 0x00 0xc7 0x70