xref: /minix3/external/bsd/llvm/dist/llvm/test/MC/Mips/micromips-alias.s (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o - \
2*0a6a1f1dSLionel Sambuc# RUN:   | llvm-readobj -t | FileCheck %s
3*0a6a1f1dSLionel Sambuc
4*0a6a1f1dSLionel Sambuc# Symbol bar must be marked as micromips.
5*0a6a1f1dSLionel Sambuc# CHECK: Name: bar
6*0a6a1f1dSLionel Sambuc# CHECK: Other: 128
7*0a6a1f1dSLionel Sambuc  .align 2
8*0a6a1f1dSLionel Sambuc  .type  f,@function
9*0a6a1f1dSLionel Sambuc  .set   nomips16
10*0a6a1f1dSLionel Sambuc  .set   micromips
11*0a6a1f1dSLionel Sambucf:
12*0a6a1f1dSLionel Sambuc  nop
13*0a6a1f1dSLionel Sambuc  .set   nomicromips
14*0a6a1f1dSLionel Sambuc  nop
15*0a6a1f1dSLionel Sambuc  .globl bar
16*0a6a1f1dSLionel Sambucbar = f
17