xref: /aosp_15_r20/external/llvm/test/CodeGen/PowerPC/ppc32-i1-vaarg.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=ppc32 -mcpu=ppc32 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=ppc32 -mcpu=ppc32 -mtriple=powerpc-darwin9 | FileCheck %s -check-prefix=CHECK-D
3*9880d681SAndroid Build Coastguard Workertarget triple = "powerpc-unknown-linux-gnu"
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdeclare void @printf(i8*, ...)
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Workerdefine void @main() {
8*9880d681SAndroid Build Coastguard Worker  call void (i8*, ...) @printf(i8* undef, i1 false)
9*9880d681SAndroid Build Coastguard Worker  ret void
10*9880d681SAndroid Build Coastguard Worker}
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: @main
13*9880d681SAndroid Build Coastguard Worker; CHECK-DAG: li 4, 0
14*9880d681SAndroid Build Coastguard Worker; CHECK-DAG: crxor 6, 6, 6
15*9880d681SAndroid Build Coastguard Worker; CHECK: bl printf
16*9880d681SAndroid Build Coastguard Worker
17*9880d681SAndroid Build Coastguard Worker; CHECK-D-LABEL: @main
18*9880d681SAndroid Build Coastguard Worker; CHECK-D: li r4, 0
19*9880d681SAndroid Build Coastguard Worker; CHECK-D: bl _printf
20*9880d681SAndroid Build Coastguard Worker
21