1*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 \ 2*9880d681SAndroid Build Coastguard Worker# RUN: -mattr=+micromips 2>&1 -filetype=obj > %t.o 3*9880d681SAndroid Build Coastguard Worker# RUN: llvm-objdump %t.o -d | FileCheck %s 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker# Check that fixup data is written in the microMIPS specific little endian 6*9880d681SAndroid Build Coastguard Worker# byte order. 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Worker .text 9*9880d681SAndroid Build Coastguard Worker .globl main 10*9880d681SAndroid Build Coastguard Worker .align 2 11*9880d681SAndroid Build Coastguard Worker .type main,@function 12*9880d681SAndroid Build Coastguard Worker .set micromips 13*9880d681SAndroid Build Coastguard Worker .set nomips16 14*9880d681SAndroid Build Coastguard Worker .ent main 15*9880d681SAndroid Build Coastguard Workermain: 16*9880d681SAndroid Build Coastguard Worker addiu $sp, $sp, -16 17*9880d681SAndroid Build Coastguard Worker bnez $9, lab1 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Worker# CHECK: 09 b4 04 00 bne $9, $zero, 8 20*9880d681SAndroid Build Coastguard Worker 21*9880d681SAndroid Build Coastguard Worker addu $zero, $zero, $zero 22*9880d681SAndroid Build Coastguard Workerlab1: 23*9880d681SAndroid Build Coastguard Worker jr $ra 24*9880d681SAndroid Build Coastguard Worker addiu $sp, $sp, 16 25*9880d681SAndroid Build Coastguard Worker .end main 26