annotate lld/test/ELF/ppc32-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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 # REQUIRES: ppc
anatofuz
parents:
diff changeset
2 # RUN: llvm-mc -filetype=obj -triple=powerpc %s -o %t.o
anatofuz
parents:
diff changeset
3 # RUN: ld.lld %t.o -o %t
anatofuz
parents:
diff changeset
4 # RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck --check-prefix=PDE %s
anatofuz
parents:
diff changeset
5 # RUN: ld.lld -pie %t.o -o %t
anatofuz
parents:
diff changeset
6 # RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck --check-prefix=PIC %s
anatofuz
parents:
diff changeset
7 # RUN: ld.lld -shared %t.o -o %t
anatofuz
parents:
diff changeset
8 # RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck --check-prefix=PIC %s
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 ## It does not really matter how we fixup it, but we cannot overflow and
anatofuz
parents:
diff changeset
11 ## should not generate a call stub (this would waste space).
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
12 # PDE: bl 0x100100b4
150
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 ## With -pie or -shared, create a call stub. ld.bfd produces bl .+0
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
15 # PIC: bl 0x[[PLT:[0-9a-f]+]]
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
16 # PIC-EMPTY:
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
17 # PIC-NEXT: 000[[PLT]] <00000000.plt_pic32.foo>:
150
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 .weak foo
anatofuz
parents:
diff changeset
20 bl foo