1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/MC/MachO/altentry.s
Lang Hames e98d2dfdbc [MachO] Extend the alt_entry support for aliases added in r263521 to
expressions of the form 'a = .' and 'a = Ltmp'.

llvm-svn: 263528
2016-03-15 04:20:49 +00:00

78 lines
1.3 KiB
ArmAsm

// RUN: llvm-mc -triple x86_64-apple-darwin -filetype=obj %s -o - | llvm-readobj -t | FileCheck %s
// CHECK: Symbol {
// CHECK: Name: _foo
// CHECK: Flags [ (0x0)
// CHECK: Value: 0x0
// CHECK: Symbol {
// CHECK: Name: _bar
// CHECK: Flags [ (0x0)
// CHECK: Value: 0x0
// CHECK: Symbol {
// CHECK: Name: _baz
// CHECK: Flags [ (0x200)
// CHECK: Value: 0x1
// CHECK: Symbol {
// CHECK: Name: _offsetsym0
// CHECK: Flags [ (0x0)
// CHECK: Value: 0x8
// CHECK: Symbol {
// CHECK: Name: _offsetsym1
// CHECK: Flags [ (0x200)
// CHECK: Value: 0xC
// CHECK: Symbol {
// CHECK: Name: _offsetsym2
// CHECK: Flags [ (0x200)
// CHECK: Value: 0x10
// CHECK: Symbol {
// CHECK: Name: _offsetsym3
// CHECK: Flags [ (0x200)
// CHECK: Value: 0x20
// CHECK: Symbol {
// CHECK: Symbol {
// CHECK: Symbol {
.section __TEXT,__text,regular,pure_instructions
_foo:
_bar = _foo
nop
_baz = .
.comm _g0,4,2
.section __DATA,__data
.globl _s0
.align 3
_s0:
.long 31
.long 32
.quad _g0
.globl _s1
.align 3
_s1:
.long 33
.long 34
.quad _g0
.globl _offsetsym0
_offsetsym0 = _s0
.globl _offsetsym1
.alt_entry _offsetsym1
_offsetsym1 = _s0+4
.globl _offsetsym2
.alt_entry _offsetsym2
_offsetsym2 = _s0+8
.globl _offsetsym3
.alt_entry _offsetsym3
_offsetsym3 = _s1+8
.subsections_via_symbols