Fixed some bugs.
[llvm/zpu.git] / test / MC / ELF / abs.s
blobd7fa0c038821a8ad305d329258b8f5d8fb122f3b
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
3 // Test that zed will be an ABS symbol
5 .Lfoo:
6 .Lbar:
7 zed = .Lfoo - .Lbar
9 // CHECK: # Symbol 0x00000001
10 // CHECK-NEXT: (('st_name', 0x00000001) # 'zed'
11 // CHECK-NEXT: ('st_bind', 0x00000000)
12 // CHECK-NEXT: ('st_type', 0x00000000)
13 // CHECK-NEXT: ('st_other', 0x00000000)
14 // CHECK-NEXT: ('st_shndx', 0x0000fff1)
15 // CHECK-NEXT: ('st_value', 0x00000000)
16 // CHECK-NEXT: ('st_size', 0x00000000)