mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 14:35:54 +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
99 lines
1.8 KiB
ArmAsm
99 lines
1.8 KiB
ArmAsm
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 | FileCheck %s --check-prefix=ASM
|
|
|
|
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -filetype=obj -o - | \
|
|
# RUN: llvm-readobj -symbols - | FileCheck %s --check-prefix=OBJ
|
|
|
|
.set micromips
|
|
|
|
.global f_mm_insn_data
|
|
.type f_mm_insn_data, @function
|
|
f_mm_insn_data:
|
|
.insn
|
|
.word 0x00e73910 # add $7, $7, $7
|
|
|
|
.global f_mm_insn_instr
|
|
.type f_mm_insn_instr, @function
|
|
f_mm_insn_instr:
|
|
.insn
|
|
add $7, $7, $7
|
|
|
|
.global o_mm_insn_data
|
|
.type o_mm_insn_data, @object
|
|
o_mm_insn_data:
|
|
.insn
|
|
.word 0x00e73910 # add $7, $7, $7
|
|
|
|
.global o_mm_insn_instr
|
|
.type o_mm_insn_instr, @object
|
|
o_mm_insn_instr:
|
|
.insn
|
|
add $7, $7, $7
|
|
|
|
.set nomicromips
|
|
|
|
.global f_normal_insn_data
|
|
.type f_normal_insn_data, @function
|
|
f_normal_insn_data:
|
|
.insn
|
|
.word 0x00e73820 # add $7, $7, $7
|
|
|
|
.global f_normal_insn_instr
|
|
.type f_normal_insn_instr, @function
|
|
f_normal_insn_instr:
|
|
.insn
|
|
add $7, $7, $7
|
|
|
|
.global o_normal_insn_data
|
|
.type o_normal_insn_data, @object
|
|
o_normal_insn_data:
|
|
.insn
|
|
.word 0x00e73820 # add $7, $7, $7
|
|
|
|
.global o_normal_insn_instr
|
|
.type o_normal_insn_instr, @object
|
|
o_normal_insn_instr:
|
|
.insn
|
|
add $7, $7, $7
|
|
|
|
# Verify that .insn causes the currently saved labels to be cleared by checking
|
|
# that foo doesn't get marked.
|
|
.set nomicromips
|
|
foo:
|
|
.insn
|
|
.word 0x00e73820 # add $7, $7, $7
|
|
|
|
.set micromips
|
|
bar:
|
|
add $7, $7, $7
|
|
|
|
# ASM: .insn
|
|
|
|
# OBJ: Symbols [
|
|
# OBJ: Name: foo
|
|
# OBJ: Other: 0
|
|
|
|
# OBJ: Name: f_mm_insn_data
|
|
# OBJ: Other [ (0x80)
|
|
|
|
# OBJ: Name: f_mm_insn_instr
|
|
# OBJ: Other [ (0x80)
|
|
|
|
# OBJ: Name: f_normal_insn_data
|
|
# OBJ: Other: 0
|
|
|
|
# OBJ: Name: f_normal_insn_instr
|
|
# OBJ: Other: 0
|
|
|
|
# OBJ: Name: o_mm_insn_data
|
|
# OBJ: Other [ (0x80)
|
|
|
|
# OBJ: Name: o_mm_insn_instr
|
|
# OBJ: Other [ (0x80)
|
|
|
|
# OBJ: Name: o_normal_insn_data
|
|
# OBJ: Other: 0
|
|
|
|
# OBJ: Name: o_normal_insn_instr
|
|
# OBJ: Other: 0
|
|
# OBJ: ]
|