llvm-project/llvm/test/MC/Mips/set-defined-symbol.s

19 lines
287 B
ArmAsm

# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -filetype=obj -o - | \
# RUN: llvm-objdump -d -r -arch=mips - | FileCheck %s
.global foo
.weak bar
.set bar, b
.set foo, b
.set foo, a
a:
nop
# CHECK-NOT: a:
# CHECK: foo:
b:
nop
# CHECK-NOT: b:
# CHECK-NOT: foo:
# CHECK: bar: