1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 20:43:44 +02:00
llvm-mirror/test/CodeGen/PowerPC/ppc32-vacopy.ll
Stefan Pintilie 40f69f3c47 [Power9] Code Cleanup - Remove needsAggressiveScheduling()
As we already return true from needsAggressiveScheduling() for the most recent
hardware it would be cleaner to just return true for all PowerPC hardware.

Differential Revision: https://reviews.llvm.org/D48663

llvm-svn: 337488
2018-07-19 19:34:18 +00:00

26 lines
663 B
LLVM

; RUN: llc -verify-machineinstrs -mtriple="powerpc-unknown-linux-gnu" -mcpu=ppc64 < %s | FileCheck %s
; PR15286
%va_list = type {i8, i8, i16, i8*, i8*}
declare void @llvm.va_copy(i8*, i8*)
define void @test_vacopy() nounwind {
entry:
%0 = alloca %va_list
%1 = alloca %va_list
%2 = bitcast %va_list* %0 to i8*
%3 = bitcast %va_list* %1 to i8*
call void @llvm.va_copy(i8* %3, i8* %2)
ret void
}
; CHECK: test_vacopy:
; CHECK-DAG: lwz [[REG1:[0-9]+]], {{.*}}
; CHECK-DAG: lwz [[REG2:[0-9]+]], {{.*}}
; CHECK-DAG: lwz [[REG3:[0-9]+]], {{.*}}
; CHECK-DAG: stw [[REG1]], {{.*}}
; CHECK-DAG: stw [[REG2]], {{.*}}
; CHECK-DAG: stw [[REG3]], {{.*}}
; CHECK: blr