llvm/test/MC/ELF/dot-symbol-assignment.s
Rafael Espindola 036ec43e83 Simplify .org processing and make it a bit more powerful.
We now always create the fragment, which lets us handle things like .org after
a .align.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252101 91177308-0d34-0410-b5e6-96231b3b80d8
2015-11-04 23:50:29 +00:00

26 lines
613 B
ArmAsm

// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -sections -section-data | FileCheck %s
one:
.quad 0xffffffffffffffff
. = . + 16
two:
.quad 0xeeeeeeeeeeeeeeee
. = 0x20
three:
.quad 0xdddddddddddddddd
.align 4
. = three + 9
// CHECK: Section {
// CHECK: Name: .text
// CHECK-NEXT: Type:
// CHECK-NEXT: Flags [
// CHECK: SectionData (
// CHECK-NEXT: 0000: FFFFFFFF FFFFFFFF 00000000 00000000
// CHECK-NEXT: 0010: 00000000 00000000 EEEEEEEE EEEEEEEE
// CHECK-NEXT: 0020: DDDDDDDD DDDDDDDD 00 |
// CHECK-NEXT: )