1 ; RUN: llc -fast-isel=false -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
2 ; RUN: -mcpu=pwr9 -ppc-asm-full-reg-names < %s | FileCheck %s --check-prefix=P9
3 ; RUN: llc -fast-isel=false -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
4 ; RUN: -mcpu=pwr10 -ppc-asm-full-reg-names < %s | FileCheck %s --check-prefix=P10
6 @newname = dso_local alias i32 (...), ptr @oldname
8 ; Function Attrs: noinline nounwind optnone
9 define dso_local signext i32 @oldname() #0 {
14 ; Function Attrs: noinline nounwind optnone
15 define dso_local signext i32 @caller() #0 {
21 ; #P10: bl newname@notoc
25 %call = call signext i32 @newname()
29 ; Function Attrs: noinline nounwind optnone -pcrelative-memops
30 ; This caller does not use PC Relative memops
31 define dso_local signext i32 @caller_nopcrel() #1 {
32 ; #P9-LABEL: caller_nopcrel
36 ; #P10-LABEL: caller_nopcrel
41 %call = call signext i32 @newname()
45 attributes #0 = { noinline nounwind optnone }
46 attributes #1 = { noinline nounwind optnone "target-features"="-pcrelative-memops" }