llvm-6502/test/MC/Mips/sym-expr.s
Daniel Sanders f2452c4cec [mips] Extend ParseJumpTarget to support the full symbol expression syntax.
Summary:
This should fix the issues the D3222 caused in lld. Testcase is based on
the one that failed in the buildbot.

Depends on D3233

Reviewers: matheusalmeida, vmedic

Reviewed By: matheusalmeida

Differential Revision: http://llvm-reviews.chandlerc.com/D3234

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205298 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-01 10:41:48 +00:00

15 lines
435 B
ArmAsm

# 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