xref: /aosp_15_r20/external/llvm/test/CodeGen/PowerPC/big-endian-call-result.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
2*9880d681SAndroid Build Coastguard Worker; RUN:   grep "addic 4, 4, 1"
3*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
4*9880d681SAndroid Build Coastguard Worker; RUN:   grep "addze 3, 3"
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdeclare i64 @foo()
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Workerdefine i64 @bar()
9*9880d681SAndroid Build Coastguard Worker{
10*9880d681SAndroid Build Coastguard Worker  %t = call i64 @foo()
11*9880d681SAndroid Build Coastguard Worker  %s = add i64 %t, 1
12*9880d681SAndroid Build Coastguard Worker  ret i64 %s
13*9880d681SAndroid Build Coastguard Worker}
14