1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
3 ; RUN: -mcpu=pwr10 -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr \
4 ; RUN: < %s | FileCheck %s --check-prefix=DEFAULT
5 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
6 ; RUN: -mcpu=pwr10 -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr \
7 ; RUN: -ppc-pcrel-linker-opt=true < %s | FileCheck %s --check-prefix=ON
8 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
9 ; RUN: -mcpu=pwr10 -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr \
10 ; RUN: -ppc-pcrel-linker-opt=false < %s | FileCheck %s --check-prefix=OFF
12 @input8 = external local_unnamed_addr global i8, align 1
14 define dso_local i8 @Read8() local_unnamed_addr {
15 ; DEFAULT-LABEL: Read8:
16 ; DEFAULT: # %bb.0: # %entry
17 ; DEFAULT-NEXT: pld r3, input8@got@pcrel(0), 1
18 ; DEFAULT-NEXT: .Lpcrel0:
19 ; DEFAULT-NEXT: .reloc .Lpcrel0-8,R_PPC64_PCREL_OPT,.-(.Lpcrel0-8)
20 ; DEFAULT-NEXT: lbz r3, 0(r3)
24 ; ON: # %bb.0: # %entry
25 ; ON-NEXT: pld r3, input8@got@pcrel(0), 1
27 ; ON-NEXT: .reloc .Lpcrel0-8,R_PPC64_PCREL_OPT,.-(.Lpcrel0-8)
28 ; ON-NEXT: lbz r3, 0(r3)
32 ; OFF: # %bb.0: # %entry
33 ; OFF-NEXT: pld r3, input8@got@pcrel(0), 1
34 ; OFF-NEXT: lbz r3, 0(r3)
37 %0 = load i8, ptr @input8, align 1