Fixed some bugs.
[llvm/zpu.git] / test / MC / ELF / diff.s
blob1879a39e8b9a18b8783e6e0f952e81d1d3eb1712
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
3 .global zed
4 foo:
5 nop
6 bar:
7 nop
8 zed:
9 mov zed+(bar-foo), %eax
11 // CHECK: # Relocation 0x00000000
12 // CHECK-NEXT: (('r_offset', 0x00000005)
13 // CHECK-NEXT: ('r_sym', 0x00000006)
14 // CHECK-NEXT: ('r_type', 0x0000000b)
15 // CHECK-NEXT: ('r_addend', 0x00000001)