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