summaryrefslogtreecommitdiff
path: root/test/MC/Mips/sym-expr.s
blob: efefb1d5c4a98d1c7e4e3fd0bff523574d16b6ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Check parsing symbol expressions

# RUN: llvm-mc -triple=mipsel -show-inst-operands %s 2> %t0
# RUN: FileCheck %s < %t0

    .global __start
    .ent    __start
__start:
    nop
loc:
    jal     __start + 0x4       # CHECK: instruction: [jal, Imm<__start+4>]
    jal     __start + (-0x10)   # CHECK: instruction: [jal, Imm<__start-16>]
    jal     (__start + (-0x10)) # CHECK: instruction: [jal, Imm<__start-16>]
    .end    __start