Dan Gohman | c8054d9 | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=ppc32 -mcpu=g5 |
Mon P Wang | 32c8074 | 2009-03-18 06:24:04 +0000 | [diff] [blame] | 2 | |
| 3 | ; Test that causes a abort in expanding a bit convert due to a missing support |
| 4 | ; for widening. |
| 5 | |
| 6 | define i32 @main() nounwind { |
| 7 | entry: |
| 8 | br i1 icmp ne (i32 trunc (i64 bitcast (<2 x i32> <i32 2, i32 2> to i64) to i32), i32 2), label %bb, label %bb1 |
| 9 | |
| 10 | bb: ; preds = %entry |
| 11 | tail call void @abort() noreturn nounwind |
| 12 | unreachable |
| 13 | |
| 14 | bb1: ; preds = %entry |
| 15 | ret i32 0 |
| 16 | } |
| 17 | |
| 18 | declare void @abort() noreturn nounwind |