• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -verify-machineinstrs -mtriple="powerpc-unknown-linux-gnu" -mcpu=ppc64 < %s | FileCheck %s
2; PR15286
3
4%va_list = type {i8, i8, i16, i8*, i8*}
5declare void @llvm.va_copy(i8*, i8*)
6
7define void @test_vacopy() nounwind {
8entry:
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-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]], {{.*}}
25; CHECK: blr
26