Relax dwarf line fragments. This fixes a crash in the included testcase.
[oota-llvm.git] / test / CodeGen / PowerPC / varargs.ll
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
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