mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
699d18eb82
Fix assert about using an undefined physical register in machine instruction verify pass. The reason is that register flag undef is missing when doing transformation from If Conversion Pass. ``` Bad machine code: Using an undefined physical register - function: func_65 - basic block: %bb.0 entry (0x10024740738) - instruction: BCLR killed $cr5lt, implicit $lr8, implicit $rm, implicit undef $x3 - operand 0: killed $cr5lt LLVM ERROR: Found 1 machine code errors. ``` There are also other existing testcases with same issue. So I add -verify-machineinstrs option to open verifying. Differential Revision: https://reviews.llvm.org/D55408 llvm-svn: 348566
21 lines
769 B
LLVM
21 lines
769 B
LLVM
; RUN: llc -verify-machineinstrs < %s
|
|
|
|
; This test formerly failed due to no handling for a ppc_fp128 undef.
|
|
|
|
target datalayout = "E-p:32:32:32-S0-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f16:16:16-f32:32:32-f64:64:64-f128:64:128-v64:64:64-v128:128:128-a0:0:64-n32"
|
|
target triple = "powerpc-unknown-linux-gnu"
|
|
|
|
%core.time.TickDuration.37.125 = type { i64 }
|
|
|
|
define weak_odr fastcc i64 @_D4core4time12TickDuration30__T2toVAyaa7_7365636f6e6473TlZ2toMxFNaNbNfZl(%core.time.TickDuration.37.125* %.this_arg) {
|
|
entry:
|
|
br i1 undef, label %noassert, label %assert
|
|
|
|
assert: ; preds = %entry
|
|
unreachable
|
|
|
|
noassert: ; preds = %entry
|
|
%tmp9 = fptosi ppc_fp128 undef to i64
|
|
ret i64 %tmp9
|
|
}
|