# RUN: llvm-mc %s -triple=mipsel -show-encoding -mattr=micromips -show-inst \ # RUN: | FileCheck -check-prefix=CHECK-EL %s # RUN: llvm-mc %s -triple=mips -show-encoding -mattr=micromips -show-inst \ # RUN: | FileCheck -check-prefix=CHECK-EB %s # Check that the assembler can handle the documented syntax # for load and store instructions. #------------------------------------------------------------------------------ # Load and Store Instructions #------------------------------------------------------------------------------ # Little endian #------------------------------------------------------------------------------ # CHECK-EL: lb $5, 8($4) # encoding: [0xa4,0x1c,0x08,0x00] # CHECK-EL: lbu $6, 8($4) # encoding: [0xc4,0x14,0x08,0x00] # CHECK-EL: lh $2, 8($4) # encoding: [0x44,0x3c,0x08,0x00] # CHECK-EL: lhu $4, 8($2) # encoding: [0x82,0x34,0x08,0x00] # CHECK-EL: lw $6, 4($5) # encoding: [0xc5,0xfc,0x04,0x00] # CHECK-EL: lw $6, 123($sp) # encoding: [0xdd,0xfc,0x7b,0x00] # 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: sw $5, 123($sp) # encoding: [0xbd,0xf8,0x7b,0x00] # CHECK-EL: sw $3, 32($gp) # encoding: [0x7c,0xf8,0x20,0x00] # CHECK-EL: ll $2, 8($4) # encoding: [0x44,0x60,0x08,0x30] # CHECK-EL: sc $2, 8($4) # encoding: [0x44,0x60,0x08,0xb0] # CHECK-EL: lwu $2, 8($4) # encoding: [0x44,0x60,0x08,0xe0] # CHECK-EL: lwxs $2, $3($4) # encoding: [0x64,0x00,0x18,0x11] # CHECK-EL-NEXT: #