Mercurial > hg > CbC > CbC_llvm
comparison test/MC/Mips/micromips-loadstore-instructions.s @ 0:95c75e76d11b LLVM3.4
LLVM 3.4
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 13:56:28 +0900 |
parents | |
children | 54457678186b |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:95c75e76d11b |
---|---|
1 # RUN: llvm-mc %s -triple=mipsel -show-encoding -mattr=micromips | FileCheck -check-prefix=CHECK-EL %s | |
2 # RUN: llvm-mc %s -triple=mips -show-encoding -mattr=micromips | FileCheck -check-prefix=CHECK-EB %s | |
3 # Check that the assembler can handle the documented syntax | |
4 # for load and store instructions. | |
5 #------------------------------------------------------------------------------ | |
6 # Load and Store Instructions | |
7 #------------------------------------------------------------------------------ | |
8 # Little endian | |
9 #------------------------------------------------------------------------------ | |
10 # CHECK-EL: lb $5, 8($4) # encoding: [0xa4,0x1c,0x08,0x00] | |
11 # CHECK-EL: lbu $6, 8($4) # encoding: [0xc4,0x14,0x08,0x00] | |
12 # CHECK-EL: lh $2, 8($4) # encoding: [0x44,0x3c,0x08,0x00] | |
13 # CHECK-EL: lhu $4, 8($2) # encoding: [0x82,0x34,0x08,0x00] | |
14 # CHECK-EL: lw $6, 4($5) # encoding: [0xc5,0xfc,0x04,0x00] | |
15 # CHECK-EL: sb $5, 8($4) # encoding: [0xa4,0x18,0x08,0x00] | |
16 # CHECK-EL: sh $2, 8($4) # encoding: [0x44,0x38,0x08,0x00] | |
17 # CHECK-EL: sw $5, 4($6) # encoding: [0xa6,0xf8,0x04,0x00] | |
18 #------------------------------------------------------------------------------ | |
19 # Big endian | |
20 #------------------------------------------------------------------------------ | |
21 # CHECK-EB: lb $5, 8($4) # encoding: [0x1c,0xa4,0x00,0x08] | |
22 # CHECK-EB: lbu $6, 8($4) # encoding: [0x14,0xc4,0x00,0x08] | |
23 # CHECK-EB: lh $2, 8($4) # encoding: [0x3c,0x44,0x00,0x08] | |
24 # CHECK-EB: lhu $4, 8($2) # encoding: [0x34,0x82,0x00,0x08] | |
25 # CHECK-EB: lw $6, 4($5) # encoding: [0xfc,0xc5,0x00,0x04] | |
26 # CHECK-EB: sb $5, 8($4) # encoding: [0x18,0xa4,0x00,0x08] | |
27 # CHECK-EB: sh $2, 8($4) # encoding: [0x38,0x44,0x00,0x08] | |
28 # CHECK-EB: sw $5, 4($6) # encoding: [0xf8,0xa6,0x00,0x04] | |
29 lb $5, 8($4) | |
30 lbu $6, 8($4) | |
31 lh $2, 8($4) | |
32 lhu $4, 8($2) | |
33 lw $6, 4($5) | |
34 sb $5, 8($4) | |
35 sh $2, 8($4) | |
36 sw $5, 4($6) |