diff options
Diffstat (limited to 'test/MC/Mips/micromips-el-fixup-data.s')
-rw-r--r-- | test/MC/Mips/micromips-el-fixup-data.s | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/MC/Mips/micromips-el-fixup-data.s b/test/MC/Mips/micromips-el-fixup-data.s new file mode 100644 index 0000000..2293f63 --- /dev/null +++ b/test/MC/Mips/micromips-el-fixup-data.s @@ -0,0 +1,25 @@ +# RUN: llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 \ +# RUN: -mattr=+micromips 2>&1 -filetype=obj > %t.o +# RUN: llvm-objdump %t.o -triple mipsel -mattr=+micromips -d | FileCheck %s + +# Check that fixup data is writen in the microMIPS specific little endian +# byte order. + + .text + .globl main + .align 2 + .type main,@function + .set micromips + .set nomips16 + .ent main +main: + addiu $sp, $sp, -16 + bnez $9, lab1 + +# CHECK: 09 b4 04 00 bne $9, $zero, 8 + + addu $zero, $zero, $zero +lab1: + jr $ra + addiu $sp, $sp, 16 + .end main |