diff options
| author | Akira Hatanaka <ahatanaka@mips.com> | 2013-04-25 02:22:07 +0000 |
|---|---|---|
| committer | Akira Hatanaka <ahatanaka@mips.com> | 2013-04-25 02:22:07 +0000 |
| commit | 8aba50fd39d812fb33100278b79e8a3f33362d45 (patch) | |
| tree | 8f513114a8687b86a1c582a9d753ee45ebb2c0b6 /llvm/test | |
| parent | 714a8f62db34e76ff3b7e1ca0ee79cc219cb2bf4 (diff) | |
| download | bcm5719-llvm-8aba50fd39d812fb33100278b79e8a3f33362d45.tar.gz bcm5719-llvm-8aba50fd39d812fb33100278b79e8a3f33362d45.zip | |
Test case for r180241.
llvm-svn: 180246
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/MC/Mips/micromips-loadstore-instructions.s | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/test/MC/Mips/micromips-loadstore-instructions.s b/llvm/test/MC/Mips/micromips-loadstore-instructions.s new file mode 100644 index 00000000000..623e2acdcbf --- /dev/null +++ b/llvm/test/MC/Mips/micromips-loadstore-instructions.s @@ -0,0 +1,22 @@ +# RUN: llvm-mc %s -triple=mipsel -show-encoding -mattr=micromips | FileCheck %s +# Check that the assembler can handle the documented syntax +# for load and store instructions. +#------------------------------------------------------------------------------ +# Load and Store Instructions +#------------------------------------------------------------------------------ +# CHECK: lb $5, 8($4) # encoding: [0x08,0x00,0xa4,0x1c] +# CHECK: lbu $6, 8($4) # encoding: [0x08,0x00,0xc4,0x14] +# CHECK: lh $2, 8($4) # encoding: [0x08,0x00,0x44,0x3c] +# CHECK: lhu $4, 8($2) # encoding: [0x08,0x00,0x82,0x34] +# CHECK: lw $6, 4($5) # encoding: [0x04,0x00,0xc5,0xfc] +# CHECK: sb $5, 8($4) # encoding: [0x08,0x00,0xa4,0x18] +# CHECK: sh $2, 8($4) # encoding: [0x08,0x00,0x44,0x38] +# CHECK: sw $5, 4($6) # encoding: [0x04,0x00,0xa6,0xf8] + lb $5, 8($4) + lbu $6, 8($4) + lh $2, 8($4) + lhu $4, 8($2) + lw $6, 4($5) + sb $5, 8($4) + sh $2, 8($4) + sw $5, 4($6) |

