summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorZoran Jovanovic <zoran.jovanovic@imgtec.com>2014-03-20 09:44:49 +0000
committerZoran Jovanovic <zoran.jovanovic@imgtec.com>2014-03-20 09:44:49 +0000
commitb71fd20f2d38e7e1a6f41bdc575196dd23ab716b (patch)
treed20de2a0f57b9c5c6e182c6408dd7ad7baf8c838 /test
parentaffc53dcde411ed461e351147ac7aaf35ecc1f87 (diff)
downloadllvm-b71fd20f2d38e7e1a6f41bdc575196dd23ab716b.tar.gz
llvm-b71fd20f2d38e7e1a6f41bdc575196dd23ab716b.tar.bz2
llvm-b71fd20f2d38e7e1a6f41bdc575196dd23ab716b.tar.xz
Mark alias symbols as microMIPS if necessary. Differential Revision: http://llvm-reviews.chandlerc.com/D3080
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/Mips/micromips-alias.s16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/MC/Mips/micromips-alias.s b/test/MC/Mips/micromips-alias.s
new file mode 100644
index 0000000000..c0bf4b3a8e
--- /dev/null
+++ b/test/MC/Mips/micromips-alias.s
@@ -0,0 +1,16 @@
+# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o - \
+# RUN: | llvm-readobj -t | FileCheck %s
+
+# Symbol bar must be marked as micromips.
+# CHECK: Name: bar
+# CHECK: Other: 128
+ .align 2
+ .type f,@function
+ .set nomips16
+ .set micromips
+f:
+ nop
+ .set nomicromips
+ nop
+ .globl bar
+bar = f