aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/Mips/micromips-el-fixup-data.s
blob: 2293f63d46dea9f8723572d81fb94c2aba90eab3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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