mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
cceba83893
expression to include the modifier. - Gross, but this a corner case we don't expect to see often in practice, but it is worth accepting. - Also improves diagnostics on invalid modifiers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114154 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
438 B
ArmAsm
15 lines
438 B
ArmAsm
// RUN: not llvm-mc -triple x86_64-unknown-unknown %s > %t 2> %t.err
|
|
// RUN: FileCheck < %t %s
|
|
// RUN: FileCheck -check-prefix=CHECK-STDERR < %t.err %s
|
|
|
|
// CHECK: .long 1
|
|
.long 1
|
|
// CHECK-STDERR: invalid modifier 'GOTPCREL' (no symbols present)
|
|
.long 10 + 4@GOTPCREL
|
|
// CHECK: .long a@GOTPCREL+4
|
|
.long a + 4@GOTPCREL
|
|
// CHECK: .long a@GOTPCREL+b@GOTPCREL
|
|
.long (a + b)@GOTPCREL
|
|
// CHECK: .long (10+b@GOTPCREL)+4
|
|
.long 10 + b + 4@GOTPCREL
|