xref: /minix3/external/bsd/llvm/dist/llvm/test/MC/Mips/sym-expr.s (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc# Check parsing symbol expressions
2*0a6a1f1dSLionel Sambuc
3*0a6a1f1dSLionel Sambuc# RUN: llvm-mc -triple=mipsel -show-inst-operands %s 2> %t0
4*0a6a1f1dSLionel Sambuc# RUN: FileCheck %s < %t0
5*0a6a1f1dSLionel Sambuc
6*0a6a1f1dSLionel Sambuc    .global __start
7*0a6a1f1dSLionel Sambuc    .ent    __start
8*0a6a1f1dSLionel Sambuc__start:
9*0a6a1f1dSLionel Sambuc    nop
10*0a6a1f1dSLionel Sambucloc:
11*0a6a1f1dSLionel Sambuc    jal     __start + 0x4       # CHECK: instruction: [jal, Imm<__start+4>]
12*0a6a1f1dSLionel Sambuc    jal     __start + (-0x10)   # CHECK: instruction: [jal, Imm<__start-16>]
13*0a6a1f1dSLionel Sambuc    jal     (__start + (-0x10)) # CHECK: instruction: [jal, Imm<__start-16>]
14*0a6a1f1dSLionel Sambuc    .end    __start
15