Test case for r180241.
[oota-llvm.git] / test / MC / Mips / micromips-loadstore-instructions.s
1 # RUN: llvm-mc %s -triple=mipsel -show-encoding -mattr=micromips | FileCheck %s
2 # Check that the assembler can handle the documented syntax
3 # for load and store instructions.
4 #------------------------------------------------------------------------------
5 # Load and Store Instructions
6 #------------------------------------------------------------------------------
7 # CHECK: lb     $5, 8($4)      # encoding: [0x08,0x00,0xa4,0x1c]
8 # CHECK: lbu    $6, 8($4)      # encoding: [0x08,0x00,0xc4,0x14]
9 # CHECK: lh     $2, 8($4)      # encoding: [0x08,0x00,0x44,0x3c]
10 # CHECK: lhu    $4, 8($2)      # encoding: [0x08,0x00,0x82,0x34]
11 # CHECK: lw     $6, 4($5)      # encoding: [0x04,0x00,0xc5,0xfc]
12 # CHECK: sb     $5, 8($4)      # encoding: [0x08,0x00,0xa4,0x18]
13 # CHECK: sh     $2, 8($4)      # encoding: [0x08,0x00,0x44,0x38]
14 # CHECK: sw     $5, 4($6)      # encoding: [0x04,0x00,0xa6,0xf8]
15      lb     $5, 8($4)
16      lbu    $6, 8($4)
17      lh     $2, 8($4)
18      lhu    $4, 8($2)
19      lw     $6, 4($5)
20      sb     $5, 8($4)
21      sh     $2, 8($4)
22      sw     $5, 4($6)