llvm-6502/test/MC/Mips/micromips-alias.s
Toma Tabacu 9f8549a4a0 [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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235095 91177308-0d34-0410-b5e6-96231b3b80d8
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