This patch updates tests using llvm-readobj and llvm-readelf, because soon reading from stdin will be achievable only via a '-' as described here: https://bugs.llvm.org/show_bug.cgi?id=46400. Patch with changes to llvm-readobj behavior is here: https://reviews.llvm.org/D83704 Differential Revision: https://reviews.llvm.org/D83912 Reviewed by: jhenderson, MaskRay, grimar
29 lines
499 B
ArmAsm
29 lines
499 B
ArmAsm
# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o - \
|
|
# RUN: | llvm-readobj --symbols - | 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
|