Silence -Wunused-variable in release builds.
[llvm/stm8.git] / test / CodeGen / PowerPC / varargs.ll
blob1769be957ac42a16f20c8acbddea28c5762ca29b
1 ; RUN: llc < %s -mtriple=powerpc-apple-darwin | FileCheck -check-prefix=P32 %s
2 ; RUN: llc < %s -mtriple=powerpc64-apple-darwin | FileCheck -check-prefix=P64 %s
4 ; PR8327
5 define i8* @test1(i8** %foo) nounwind {
6   %A = va_arg i8** %foo, i8*
7   ret i8* %A
10 ; P32: test1:
11 ; P32:  lwz r4, 0(r3)
12 ; P32:  addi r5, r4, 4
13 ; P32:  stw r5, 0(r3)
14 ; P32:  lwz r3, 0(r4)
15 ; P32:  blr 
17 ; P64: test1:
18 ; P64: ld r4, 0(r3)
19 ; P64: addi r5, r4, 8
20 ; P64: std r5, 0(r3)
21 ; P64: ld r3, 0(r4)
22 ; P64: blr