mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 09:45:00 +00:00
a5a68b8d26
The patch supports common STV_xxx visibility flags and MIPS specific STO_MIPS_xxx flags. Differential Revision: http://reviews.llvm.org/D18447 llvm-svn: 264300
29 lines
490 B
ArmAsm
29 lines
490 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 [ (0x80)
|
|
.align 2
|
|
.type f,@function
|
|
.set nomips16
|
|
.set micromips
|
|
f:
|
|
nop
|
|
.set nomicromips
|
|
nop
|
|
.globl bar
|
|
bar = f
|
|
|
|
# CHECK: Name: foo
|
|
# CHECK: Other [ (0x80)
|
|
.type o,@object
|
|
.set micromips
|
|
o:
|
|
.insn
|
|
.word 0x00000000
|
|
.set nomicromips
|
|
|
|
.globl foo
|
|
foo = o
|