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 11 12@input8 = external local_unnamed_addr global i8, align 1 13 14define 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: .Lpcrel: 19; DEFAULT-NEXT: .reloc .Lpcrel-8,R_PPC64_PCREL_OPT,.-(.Lpcrel-8) 20; DEFAULT-NEXT: lbz r3, 0(r3) 21; DEFAULT-NEXT: blr 22; 23; ON-LABEL: Read8: 24; ON: # %bb.0: # %entry 25; ON-NEXT: pld r3, input8@got@pcrel(0), 1 26; ON-NEXT: .Lpcrel: 27; ON-NEXT: .reloc .Lpcrel-8,R_PPC64_PCREL_OPT,.-(.Lpcrel-8) 28; ON-NEXT: lbz r3, 0(r3) 29; ON-NEXT: blr 30; 31; OFF-LABEL: Read8: 32; OFF: # %bb.0: # %entry 33; OFF-NEXT: pld r3, input8@got@pcrel(0), 1 34; OFF-NEXT: lbz r3, 0(r3) 35; OFF-NEXT: blr 36entry: 37 %0 = load i8, i8* @input8, align 1 38 ret i8 %0 39} 40