diff options
| author | Jozef Kolek <jozef.kolek@imgtec.com> | 2015-05-08 14:25:11 +0000 |
|---|---|---|
| committer | Jozef Kolek <jozef.kolek@imgtec.com> | 2015-05-08 14:25:11 +0000 |
| commit | 8abad7bacc2e349592eb542c60f58e64c16397b1 (patch) | |
| tree | 19b8d007d2c1af4ddf9c41755b68b013e4958466 /llvm/test | |
| parent | e5f9bf0da0807cba125925b7f92ee2f488e424dc (diff) | |
| download | bcm5719-llvm-8abad7bacc2e349592eb542c60f58e64c16397b1.tar.gz bcm5719-llvm-8abad7bacc2e349592eb542c60f58e64c16397b1.zip | |
[mips][microMIPSr6] Implement ALUIPC and AUIPC instructions
This patch implements ALUIPC and AUIPC instructions using mapping.
Differential Revision: http://reviews.llvm.org/D8441
llvm-svn: 236858
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/MC/Disassembler/Mips/micromips32r6.txt | 4 | ||||
| -rw-r--r-- | llvm/test/MC/Mips/micromips32r6/valid.s | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/MC/Disassembler/Mips/micromips32r6.txt b/llvm/test/MC/Disassembler/Mips/micromips32r6.txt index 17332375a90..0d840e4a4ea 100644 --- a/llvm/test/MC/Disassembler/Mips/micromips32r6.txt +++ b/llvm/test/MC/Disassembler/Mips/micromips32r6.txt @@ -8,6 +8,10 @@ 0x78 0x80 0x00 0x19 # CHECK: addiupc $4, 100 +0x78 0x7f 0x00 0x38 # CHECK: aluipc $3, 56 + +0x78 0x7e 0xff 0xff # CHECK: auipc $3, -1 + # CHECK: balc 14572256 0xb4 0x37 0x96 0xb8 diff --git a/llvm/test/MC/Mips/micromips32r6/valid.s b/llvm/test/MC/Mips/micromips32r6/valid.s index 869c5807298..db335ce599d 100644 --- a/llvm/test/MC/Mips/micromips32r6/valid.s +++ b/llvm/test/MC/Mips/micromips32r6/valid.s @@ -5,6 +5,8 @@ addiu $3, $4, 1234 # CHECK: addiu $3, $4, 1234 # encoding: [0x30,0x64,0x04,0xd2] addu $3, $4, $5 # CHECK: addu $3, $4, $5 # encoding: [0x00,0xa4,0x19,0x50] addiupc $4, 100 # CHECK: addiupc $4, 100 # encoding: [0x78,0x80,0x00,0x19] + aluipc $3, 56 # CHECK: aluipc $3, 56 # encoding: [0x78,0x7f,0x00,0x38] + auipc $3, -1 # CHECK: auipc $3, -1 # encoding: [0x78,0x7e,0xff,0xff] 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] |

