Bill Schmidt | 12ae7fd | 2013-07-08 14:22:45 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s |
| 2 | |
| 3 | ; This test formerly failed due to no handling for a ppc_fp128 undef. |
| 4 | |
| 5 | 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" |
| 6 | target triple = "powerpc-unknown-linux-gnu" |
| 7 | |
| 8 | %core.time.TickDuration.37.125 = type { i64 } |
| 9 | |
| 10 | define weak_odr fastcc i64 @_D4core4time12TickDuration30__T2toVAyaa7_7365636f6e6473TlZ2toMxFNaNbNfZl(%core.time.TickDuration.37.125* %.this_arg) { |
| 11 | entry: |
| 12 | br i1 undef, label %noassert, label %assert |
| 13 | |
| 14 | assert: ; preds = %entry |
| 15 | unreachable |
| 16 | |
| 17 | noassert: ; preds = %entry |
| 18 | %tmp9 = fptosi ppc_fp128 undef to i64 |
| 19 | ret i64 %tmp9 |
| 20 | } |