xref: /llvm-project/llvm/test/CodeGen/PowerPC/pr3711_widen_bit.ll (revision deab451e7a7f2dff42097049274637052c87eabd)
1; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5
2
3; Test that causes a abort in expanding a bit convert due to a missing support
4; for widening.
5
6define i32 @main() nounwind {
7entry:
8	%cmp = icmp ne i32 trunc (i64 bitcast (<2 x i32> <i32 2, i32 2> to i64) to i32), 2
9	br i1 %cmp, label %bb, label %bb1
10
11bb:		; preds = %entry
12	tail call void @abort() noreturn nounwind
13	unreachable
14
15bb1:		; preds = %entry
16	ret i32 0
17}
18
19declare void @abort() noreturn nounwind
20