mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-27 07:12:06 +00:00
38caf19333
Currently we have a number of tests that fail with -verify-machineinstrs. To detect this cases earlier we add the option to the testcases with the exception of tests that will currently fail with this option. PR 27456 keeps track of this failures. No code review, as discussed with Hal Finkel. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277624 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
509 B
LLVM
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
|
|
}
|