linux-packaging-mono/external/llvm/test/CodeGen/PowerPC/2008-04-16-CoalescerBug.ll
Xamarin Public Jenkins (auto-signing) 64ac736ec5 Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
2019-04-12 14:10:50 +00:00

15 lines
509 B
LLVM

; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin
; Avoid reading memory that's already freed.
@llvm.used = appending global [1 x i8*] [ i8* bitcast (i32 (i64)* @_Z13GetSectorSizey to i8*) ], section "llvm.metadata" ; <[1 x i8*]*> [#uses=0]
define i32 @_Z13GetSectorSizey(i64 %Base) nounwind {
entry:
br i1 false, label %bb, label %UnifiedReturnBlock
bb: ; preds = %entry
%tmp10 = and i64 0, %Base ; <i64> [#uses=0]
ret i32 0
UnifiedReturnBlock: ; preds = %entry
ret i32 131072
}