diff options
author | Zoran Jovanovic <zoran.jovanovic@imgtec.com> | 2013-12-19 16:12:56 +0000 |
---|---|---|
committer | Zoran Jovanovic <zoran.jovanovic@imgtec.com> | 2013-12-19 16:12:56 +0000 |
commit | ff9d5f3284728d225739bb04748749c7e193ca6f (patch) | |
tree | 627da04455c7652581419a7d16f4cd267a5c5f95 /llvm/test | |
parent | 71b2e20df9300aa1ef07d6eaaeb25715e8282caa (diff) | |
download | bcm5719-llvm-ff9d5f3284728d225739bb04748749c7e193ca6f.tar.gz bcm5719-llvm-ff9d5f3284728d225739bb04748749c7e193ca6f.zip |
Support for microMIPS LL and SC instructions.
llvm-svn: 197692
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/MC/Mips/micromips-loadstore-instructions.s | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/llvm/test/MC/Mips/micromips-loadstore-instructions.s b/llvm/test/MC/Mips/micromips-loadstore-instructions.s index cc7514b3231..4885e4e34d8 100644 --- a/llvm/test/MC/Mips/micromips-loadstore-instructions.s +++ b/llvm/test/MC/Mips/micromips-loadstore-instructions.s @@ -1,5 +1,7 @@ -# RUN: llvm-mc %s -triple=mipsel -show-encoding -mattr=micromips | FileCheck -check-prefix=CHECK-EL %s -# RUN: llvm-mc %s -triple=mips -show-encoding -mattr=micromips | FileCheck -check-prefix=CHECK-EB %s +# RUN: llvm-mc %s -triple=mipsel -show-encoding -mattr=micromips \ +# RUN: | FileCheck -check-prefix=CHECK-EL %s +# RUN: llvm-mc %s -triple=mips -show-encoding -mattr=micromips \ +# RUN: | FileCheck -check-prefix=CHECK-EB %s # Check that the assembler can handle the documented syntax # for load and store instructions. #------------------------------------------------------------------------------ @@ -15,6 +17,8 @@ # CHECK-EL: sb $5, 8($4) # encoding: [0xa4,0x18,0x08,0x00] # CHECK-EL: sh $2, 8($4) # encoding: [0x44,0x38,0x08,0x00] # CHECK-EL: sw $5, 4($6) # encoding: [0xa6,0xf8,0x04,0x00] +# CHECK-EL: ll $2, 8($4) # encoding: [0x44,0x60,0x08,0x30] +# CHECK-EL: sc $2, 8($4) # encoding: [0x44,0x60,0x08,0xb0] #------------------------------------------------------------------------------ # Big endian #------------------------------------------------------------------------------ @@ -26,6 +30,8 @@ # CHECK-EB: sb $5, 8($4) # encoding: [0x18,0xa4,0x00,0x08] # CHECK-EB: sh $2, 8($4) # encoding: [0x38,0x44,0x00,0x08] # CHECK-EB: sw $5, 4($6) # encoding: [0xf8,0xa6,0x00,0x04] +# CHECK-EB: ll $2, 8($4) # encoding: [0x60,0x44,0x30,0x08] +# CHECK-EB: sc $2, 8($4) # encoding: [0x60,0x44,0xb0,0x08] lb $5, 8($4) lbu $6, 8($4) lh $2, 8($4) @@ -34,3 +40,5 @@ sb $5, 8($4) sh $2, 8($4) sw $5, 4($6) + ll $2, 8($4) + sc $2, 8($4) |