view test/MC/Mips/micromips-el-fixup-data.s @ 121:803732b1fca8

LLVM 5.0
author kono
date Fri, 27 Oct 2017 17:07:41 +0900
parents 1172e4bd9c6f
children c2174574ed3a
line wrap: on
line source

# RUN: llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 \
# RUN:   -mattr=+micromips 2>&1 -filetype=obj > %t.o
# RUN: llvm-objdump %t.o -d | FileCheck %s

# Check that fixup data is written 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    bnez $9, 12

    addu    $zero, $zero, $zero
lab1:
    jr  $ra
    addiu   $sp, $sp, 16
    .end    main