[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ELF / weakref-reloc.s
blob5ed9b5696da956ac000f4c4f4991f50eef00132e
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r --symbols - | FileCheck %s
3 // Test that the relocations point to the correct symbols.
5 .weakref bar,foo
6 call zed@PLT
7 call bar
9 // CHECK: Relocations [
10 // CHECK-NEXT: Section ({{[0-9]+}}) {{[^ ]+}} {
11 // CHECK-NEXT: 0x1 R_X86_64_PLT32 zed 0xFFFFFFFFFFFFFFFC
12 // CHECK-NEXT: 0x6 R_X86_64_PLT32 foo 0xFFFFFFFFFFFFFFFC
13 // CHECK-NEXT: }
14 // CHECK-NEXT: ]