• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Check parsing symbol expressions
2
3# RUN: llvm-mc -triple=mipsel -show-inst-operands %s 2> %t0
4# RUN: FileCheck %s < %t0
5
6    .global __start
7    .ent    __start
8__start:
9    nop
10loc:
11    jal     __start + 0x4       # CHECK: instruction: [jal, Imm<__start+4>]
12    jal     __start + (-0x10)   # CHECK: instruction: [jal, Imm<__start-16>]
13    jal     (__start + (-0x10)) # CHECK: instruction: [jal, Imm<__start-16>]
14    .end    __start
15