Provide correct encodings for the get_lane and set_lane variants of vmov.
[oota-llvm.git] / test / MC / ELF / relax.s
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump  --dump-section-data | FileCheck  %s
2
3 // Test that we do a relaxation for foo but not for bar. Relaxing foo is
4 // probably not necessary, but matches what gnu as does.
5
6 // Also test that the relaxation done for foo uses the symbol, not section and
7 // offset.
8
9 bar:
10 .globl foo
11 foo:
12         jmp bar
13         jmp foo
14
15 // CHECK: ('sh_name', 0x00000001) # '.text'
16 // CHECK-NEXT: ('sh_type', 0x00000001)
17 // CHECK-NEXT: ('sh_flags', 0x00000006)
18 // CHECK-NEXT: ('sh_addr', 0x00000000)
19 // CHECK-NEXT: ('sh_offset', 0x00000040)
20 // CHECK-NEXT: ('sh_size', 0x00000007)
21 // CHECK-NEXT: ('sh_link', 0x00000000)
22 // CHECK-NEXT: ('sh_info', 0x00000000)
23 // CHECK-NEXT: ('sh_addralign', 0x00000004)
24 // CHECK-NEXT: ('sh_entsize', 0x00000000)
25 // CHECK-NEXT: ('_section_data', 'ebfee900 000000')
26
27 // CHECK:       # Symbol 0x00000005
28 // CHECK-NEXT: (('st_name', 0x00000005) # 'foo'
29
30 // CHECK: .rela.text
31 // CHECK: ('_relocations', [
32 // CHECK-NEXT: Relocation 0x00000000
33 // CHECK-NEXT:  (('r_offset', 0x00000003)
34 // CHECK-NEXT:   ('r_sym', 0x00000005)
35 // CHECK-NEXT:   ('r_type', 0x00000002)
36 // CHECK-NEXT:   ('r_addend', 0xfffffffc)
37 // CHECK-NEXT:  ),
38 // CHECK-NEXT: ])