1 ; RUN: llc -mtriple="powerpc-unknown-linux-gnu" -mcpu=ppc64 < %s | FileCheck %s 2 ; PR15286 3 4 %va_list = type {i8, i8, i16, i8*, i8*} 5 declare void @llvm.va_copy(i8*, i8*) 6 7 define void @test_vacopy() nounwind { 8 entry: 9 %0 = alloca %va_list 10 %1 = alloca %va_list 11 %2 = bitcast %va_list* %0 to i8* 12 %3 = bitcast %va_list* %1 to i8* 13 14 call void @llvm.va_copy(i8* %3, i8* %2) 15 16 ret void 17 } 18 ; CHECK: test_vacopy: 19 ; CHECK: lwz [[REG1:[0-9]+]], {{.*}} 20 ; CHECK: lwz [[REG2:[0-9]+]], {{.*}} 21 ; CHECK: lwz [[REG3:[0-9]+]], {{.*}} 22 ; CHECK: stw [[REG1]], {{.*}} 23 ; CHECK: stw [[REG2]], {{.*}} 24 ; CHECK: stw [[REG3]], {{.*}} 25