llvm-project/llvm/test/CodeGen/PowerPC/2008-03-05-RegScavengerAssert.ll
Kai Nacke 427fb35192 [PPC] Opaque pointer migration, part 1.
The LIT test cases were migrated with the script provided by
Nikita Popov. Due to the size of the change it is split into
several parts.

Reviewed By: nemanja, amyk, nikic, PowerPC

Differential Revision: https://reviews.llvm.org/D135470
2022-10-11 17:24:06 +00:00

20 lines
498 B
LLVM

; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s
declare ptr @bar(i32)
; CHECK: @foo
; CHECK: blr
define void @foo(ptr %pp) nounwind {
entry:
%tmp2 = tail call ptr @bar( i32 14 ) nounwind ; <ptr> [#uses=0]
%tmp38 = load ptr, ptr %pp, align 4 ; <ptr> [#uses=2]
br i1 false, label %bb34, label %bb25
bb25: ; preds = %entry
tail call void %tmp38( ptr null ) nounwind
ret void
bb34: ; preds = %entry
tail call void %tmp38( ) nounwind
ret void
}