Taints the non-acquire RMW's store address with the load part
[oota-llvm.git] / test / MC / ELF / rename.s
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -sr -t | FileCheck %s
2
3 // When doing a rename, all the checks for where the relocation should go
4 // should be performed with the original symbol. Only if we decide to relocate
5 // with the symbol we should then use the renamed one.
6
7 // This is a regression test for a bug where we used bar5@@@zed when deciding
8 // if we should relocate with the symbol or with the section and we would then
9 // not produce a relocation with .text.
10
11 defined1:
12 defined3:
13         .symver defined3, bar5@@@zed
14         .long defined3
15
16         .global defined1
17
18 // CHECK:        Section {
19 // CHECK:          Index:
20 // CHECK:          Name: .rela.text
21 // CHECK-NEXT:     Type: SHT_RELA (0x4)
22 // CHECK-NEXT:     Flags [ (0x0)
23 // CHECK-NEXT:     ]
24 // CHECK-NEXT:     Address: 0x0
25 // CHECK-NEXT:     Offset:
26 // CHECK-NEXT:     Size: 24
27 // CHECK-NEXT:     Link:
28 // CHECK-NEXT:     Info:
29 // CHECK-NEXT:     AddressAlignment: 8
30 // CHECK-NEXT:     EntrySize: 24
31 // CHECK-NEXT:     Relocations [
32 // CHECK-NEXT:       0x0 R_X86_64_32 .text 0x0
33 // CHECK-NEXT:     ]
34 // CHECK-NEXT:   }