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