mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
a60f719c8d
sym_a: sym_d = sym_a + 1 This is the smallest fix I was able to extract from what got reverted in r204203. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204527 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
812 B
ArmAsm
28 lines
812 B
ArmAsm
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -t - | FileCheck %s
|
|
|
|
// Test that a variable declared with "var = other_var + cst" is in the same
|
|
// section as other_var and its value is the value of other_var + cst.
|
|
|
|
sym_a:
|
|
sym_d = sym_a + 1
|
|
|
|
|
|
// CHECK: Symbol {
|
|
// CHECK: Name: sym_a
|
|
// CHECK-NEXT: Value: 0x0
|
|
// CHECK-NEXT: Size: 0
|
|
// CHECK-NEXT: Binding: Local (0x0)
|
|
// CHECK-NEXT: Type: None (0x0)
|
|
// CHECK-NEXT: Other: 0
|
|
// CHECK-NEXT: Section: .text (0x1)
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: Symbol {
|
|
// CHECK-NEXT: Name: sym_d
|
|
// CHECK-NEXT: Value: 0x1
|
|
// CHECK-NEXT: Size: 0
|
|
// CHECK-NEXT: Binding: Local (0x0)
|
|
// CHECK-NEXT: Type: None (0x0)
|
|
// CHECK-NEXT: Other: 0
|
|
// CHECK-NEXT: Section: (0xFFF1)
|
|
// CHECK-NEXT: }
|