aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/Mips/set-defined-symbol.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/Mips/set-defined-symbol.s')
-rw-r--r--test/MC/Mips/set-defined-symbol.s18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/MC/Mips/set-defined-symbol.s b/test/MC/Mips/set-defined-symbol.s
new file mode 100644
index 0000000..54db45d
--- /dev/null
+++ b/test/MC/Mips/set-defined-symbol.s
@@ -0,0 +1,18 @@
+# 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: