diff options
| author | Jozef Kolek <jozef.kolek@imgtec.com> | 2015-04-20 18:14:59 +0000 |
|---|---|---|
| committer | Jozef Kolek <jozef.kolek@imgtec.com> | 2015-04-20 18:14:59 +0000 |
| commit | 207d248eba51c25dfca8dc3b1a38703e07fb7b2b (patch) | |
| tree | 7d6152b5e04eda44358a1b36d88eae3e777c6196 /llvm/test | |
| parent | fa8aa172ad066ba37dec6b9333e63c93478ec581 (diff) | |
| download | bcm5719-llvm-207d248eba51c25dfca8dc3b1a38703e07fb7b2b.tar.gz bcm5719-llvm-207d248eba51c25dfca8dc3b1a38703e07fb7b2b.zip | |
[mips][microMIPSr6] Implement BITSWAP instruction
Implement BITSWAP instruction using mapping.
Differential Revision: http://reviews.llvm.org/D8857
llvm-svn: 235321
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/MC/Disassembler/Mips/micromips32r6.txt | 3 | ||||
| -rw-r--r-- | llvm/test/MC/Mips/micromips32r6/valid.s | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/MC/Disassembler/Mips/micromips32r6.txt b/llvm/test/MC/Disassembler/Mips/micromips32r6.txt index 0b1b78f33b0..cbd7680962e 100644 --- a/llvm/test/MC/Disassembler/Mips/micromips32r6.txt +++ b/llvm/test/MC/Disassembler/Mips/micromips32r6.txt @@ -5,3 +5,6 @@ # CHECK: bc 14572256 0x94 0x37 0x96 0xb8 + +# CHECK: bitswap $4, $2 +0x00 0x44 0x0b 0x3c diff --git a/llvm/test/MC/Mips/micromips32r6/valid.s b/llvm/test/MC/Mips/micromips32r6/valid.s index e0e854450b9..2ffa6a9607a 100644 --- a/llvm/test/MC/Mips/micromips32r6/valid.s +++ b/llvm/test/MC/Mips/micromips32r6/valid.s @@ -3,3 +3,4 @@ .set noat balc 14572256 # CHECK: balc 14572256 # encoding: [0xb4,0x37,0x96,0xb8] bc 14572256 # CHECK: bc 14572256 # encoding: [0x94,0x37,0x96,0xb8] + bitswap $4, $2 # CHECK: bitswap $4, $2 # encoding: [0x00,0x44,0x0b,0x3c] |

