xref: /aosp_15_r20/external/llvm/test/MC/Mips/set-defined-symbol.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -filetype=obj -o - | \
2*9880d681SAndroid Build Coastguard Worker# RUN:   llvm-objdump -d -r - | FileCheck %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker  .global foo
5*9880d681SAndroid Build Coastguard Worker  .weak bar
6*9880d681SAndroid Build Coastguard Worker  .set bar, b
7*9880d681SAndroid Build Coastguard Worker  .set foo, b
8*9880d681SAndroid Build Coastguard Worker  .set foo, a
9*9880d681SAndroid Build Coastguard Workera:
10*9880d681SAndroid Build Coastguard Worker  nop
11*9880d681SAndroid Build Coastguard Worker# CHECK-NOT: a:
12*9880d681SAndroid Build Coastguard Worker# CHECK: foo:
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Workerb:
15*9880d681SAndroid Build Coastguard Worker  nop
16*9880d681SAndroid Build Coastguard Worker# CHECK-NOT: b:
17*9880d681SAndroid Build Coastguard Worker# CHECK-NOT: foo:
18*9880d681SAndroid Build Coastguard Worker# CHECK: bar:
19