Mercurial > hg > CbC > CbC_llvm
view lld/test/ELF/ppc64-weak-undef-call.s @ 192:d7606dcf6fce
Added tag llvm10 for changeset 0572611fdcc8
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 14 Dec 2020 18:01:34 +0900 |
parents | 0572611fdcc8 |
children |
line wrap: on
line source
# REQUIRES: ppc # RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 # RUN: llvm-objdump -d --no-show-raw-insn %t2 | FileCheck %s # RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 # RUN: llvm-objdump -d --no-show-raw-insn %t2 | FileCheck %s # CHECK: Disassembly of section .text: # CHECK-EMPTY: .text .global _start _start: bl weakfunc nop blr .weak weakfunc # It does not really matter how we fixup the bl, if at all, because it needs to # be unreachable. But, we should link successfully. We should not, however, # generate a .plt entry (this would be wasted space). For now, we do nothing # (leaving the zero relative offset present in the input). # CHECK: 10010158: bl 0x10010158 # CHECK: 1001015c: nop # CHECK: 10010160: blr