1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/test/MC/Mips/set-defined-symbol.s
Toma Tabacu 849acf0064 [mips] [IAS] Allow .set assignments for already defined symbols.
Summary:
This is not possible when using the IAS for MIPS, but it is possible when using the IAS for other architectures and when using GAS for MIPS.


Reviewers: dsanders

Reviewed By: dsanders

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D8578

llvm-svn: 234316
2015-04-07 13:59:39 +00:00

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: