1 # RUN: llvm-mc %s -triple=mipsel-unknown-linux -show-encoding -mcpu=mips32r2 | FileCheck %s
2 # Check that the assembler can handle the documented syntax
3 # for macro instructions
4 # CHECK: .section __TEXT,__text,regular,pure_instructions
5 #------------------------------------------------------------------------------
6 # Load immediate instructions
7 #------------------------------------------------------------------------------
8 # CHECK: ori $5, $zero, 123 # encoding: [0x7b,0x00,0x05,0x34]
9 # CHECK: addiu $6, $zero, -2345 # encoding: [0xd7,0xf6,0x06,0x24]
10 # CHECK: lui $7, 1 # encoding: [0x01,0x00,0x07,0x3c]
11 # CHECK: ori $7, $7, 2 # encoding: [0x02,0x00,0xe7,0x34]