mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-24 09:29:42 +00:00
Differential Revision: http://llvm-reviews.chandlerc.com/D3245 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205528 91177308-0d34-0410-b5e6-96231b3b80d8
26 lines
602 B
ArmAsm
26 lines
602 B
ArmAsm
# 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
|