xref: /aosp_15_r20/external/llvm/test/MC/Mips/micromips-alias.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o - \
2*9880d681SAndroid Build Coastguard Worker# RUN:   | llvm-readobj -t | FileCheck %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker# Symbol bar must be marked as micromips.
5*9880d681SAndroid Build Coastguard Worker# CHECK: Name: bar
6*9880d681SAndroid Build Coastguard Worker# CHECK: Other [ (0x80)
7*9880d681SAndroid Build Coastguard Worker  .align 2
8*9880d681SAndroid Build Coastguard Worker  .type  f,@function
9*9880d681SAndroid Build Coastguard Worker  .set   nomips16
10*9880d681SAndroid Build Coastguard Worker  .set   micromips
11*9880d681SAndroid Build Coastguard Workerf:
12*9880d681SAndroid Build Coastguard Worker  nop
13*9880d681SAndroid Build Coastguard Worker  .set   nomicromips
14*9880d681SAndroid Build Coastguard Worker  nop
15*9880d681SAndroid Build Coastguard Worker  .globl bar
16*9880d681SAndroid Build Coastguard Workerbar = f
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Worker# CHECK: Name: foo
19*9880d681SAndroid Build Coastguard Worker# CHECK: Other [ (0x80)
20*9880d681SAndroid Build Coastguard Worker  .type  o,@object
21*9880d681SAndroid Build Coastguard Worker  .set   micromips
22*9880d681SAndroid Build Coastguard Workero:
23*9880d681SAndroid Build Coastguard Worker  .insn
24*9880d681SAndroid Build Coastguard Worker  .word 0x00000000
25*9880d681SAndroid Build Coastguard Worker  .set   nomicromips
26*9880d681SAndroid Build Coastguard Worker
27*9880d681SAndroid Build Coastguard Worker  .globl foo
28*9880d681SAndroid Build Coastguard Workerfoo = o
29