1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/MC/Mips/micromips-alias.s
Toma Tabacu b4f2fcf14e [mips] [IAS] Preserve microMIPS label marking for objects when assigning.
Summary: Previously, this was only happening for functions, but because of .insn, objects can also be marked now.

Reviewers: dsanders

Reviewed By: dsanders

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D8007

llvm-svn: 235095
2015-04-16 13:37:32 +00:00

29 lines
482 B
ArmAsm

# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o - \
# RUN: | llvm-readobj -t | FileCheck %s
# Symbol bar must be marked as micromips.
# CHECK: Name: bar
# CHECK: Other: 128
.align 2
.type f,@function
.set nomips16
.set micromips
f:
nop
.set nomicromips
nop
.globl bar
bar = f
# CHECK: Name: foo
# CHECK: Other: 128
.type o,@object
.set micromips
o:
.insn
.word 0x00000000
.set nomicromips
.globl foo
foo = o