2014-04-03 20:01:01 +08:00
|
|
|
# RUN: llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 \
|
|
|
|
# RUN: -mattr=+micromips 2>&1 -filetype=obj > %t.o
|
2016-06-16 17:17:03 +08:00
|
|
|
# RUN: llvm-objdump %t.o -d | FileCheck %s
|
2014-04-03 20:01:01 +08:00
|
|
|
|
2014-04-09 22:47:27 +08:00
|
|
|
# Check that fixup data is written in the microMIPS specific little endian
|
2014-04-03 20:01:01 +08:00
|
|
|
# byte order.
|
|
|
|
|
|
|
|
.text
|
|
|
|
.globl main
|
|
|
|
.align 2
|
|
|
|
.type main,@function
|
|
|
|
.set micromips
|
|
|
|
.set nomips16
|
|
|
|
.ent main
|
|
|
|
main:
|
|
|
|
addiu $sp, $sp, -16
|
|
|
|
bnez $9, lab1
|
|
|
|
|
2016-08-22 20:17:59 +08:00
|
|
|
# CHECK: 09 b4 04 00 bnez $9, 12
|
2014-04-03 20:01:01 +08:00
|
|
|
|
|
|
|
addu $zero, $zero, $zero
|
|
|
|
lab1:
|
|
|
|
jr $ra
|
|
|
|
addiu $sp, $sp, 16
|
|
|
|
.end main
|