Chris Lattner | 749dc72 | 2010-10-10 18:34:00 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -march=ppc32 | FileCheck -check-prefix=P32 %s |
2 | ; RUN: llc < %s -march=ppc64 | FileCheck -check-prefix=P64 %s | ||||
3 | |||||
4 | ; PR8327 | ||||
5 | define i8* @test1(i8** %foo) nounwind { | ||||
6 | %A = va_arg i8** %foo, i8* | ||||
7 | ret i8* %A | ||||
8 | } | ||||
9 | |||||
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 | ||||
16 | |||||
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 |