xref: /minix3/external/bsd/llvm/dist/llvm/test/MC/Mips/micromips-el-fixup-data.s (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc# RUN: llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 \
2*0a6a1f1dSLionel Sambuc# RUN:   -mattr=+micromips 2>&1 -filetype=obj > %t.o
3*0a6a1f1dSLionel Sambuc# RUN: llvm-objdump %t.o -triple mipsel -mattr=+micromips -d | FileCheck %s
4*0a6a1f1dSLionel Sambuc
5*0a6a1f1dSLionel Sambuc# Check that fixup data is written in the microMIPS specific little endian
6*0a6a1f1dSLionel Sambuc# byte order.
7*0a6a1f1dSLionel Sambuc
8*0a6a1f1dSLionel Sambuc    .text
9*0a6a1f1dSLionel Sambuc    .globl  main
10*0a6a1f1dSLionel Sambuc    .align  2
11*0a6a1f1dSLionel Sambuc    .type   main,@function
12*0a6a1f1dSLionel Sambuc    .set    micromips
13*0a6a1f1dSLionel Sambuc    .set    nomips16
14*0a6a1f1dSLionel Sambuc    .ent    main
15*0a6a1f1dSLionel Sambucmain:
16*0a6a1f1dSLionel Sambuc    addiu   $sp, $sp, -16
17*0a6a1f1dSLionel Sambuc    bnez    $9, lab1
18*0a6a1f1dSLionel Sambuc
19*0a6a1f1dSLionel Sambuc# CHECK:    09 b4 04 00    bne $9, $zero, 8
20*0a6a1f1dSLionel Sambuc
21*0a6a1f1dSLionel Sambuc    addu    $zero, $zero, $zero
22*0a6a1f1dSLionel Sambuclab1:
23*0a6a1f1dSLionel Sambuc    jr  $ra
24*0a6a1f1dSLionel Sambuc    addiu   $sp, $sp, 16
25*0a6a1f1dSLionel Sambuc    .end    main
26