[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / ELF / rename.s
blob1169cd4a5f79eb42aafcd4f4c950fa388309421b
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --symbols | FileCheck %s
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.
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.
11 defined1:
12 defined3:
13 .symver defined3, bar5@@@zed
14 .long defined3
16 .global defined1
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: }