mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-05 13:09:10 +00:00
9f8549a4a0
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
29 lines
482 B
ArmAsm
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
|