1 ; RUN: llc -mtriple=aarch64-apple-darwin -O0 -fast-isel-abort=1 -verify-machineinstrs < %s
3 ; Test that we don't fold the shift.
4 define i64 @fold_shift_test(i64 %a, i1 %c) {
7 br i1 %c, label %bb1, label %bb2
9 %3 = icmp ult i64 0, %2
10 br i1 %3, label %bb2, label %bb3
17 ; Test that we don't fold the sign-extend.
18 define i64 @fold_sext_test1(i32 %a, i1 %c) {
20 %2 = sext i32 %1 to i64
21 br i1 %c, label %bb1, label %bb2
23 %3 = icmp ult i64 0, %2
24 br i1 %3, label %bb2, label %bb3
31 ; Test that we don't fold the sign-extend.
32 define i64 @fold_sext_test2(i32 %a, i1 %c) {
34 %2 = sext i32 %1 to i64
35 br i1 %c, label %bb1, label %bb2
43 ; Test that we clear the kill flag.
44 define i32 @fold_kill_test(i32 %a) {
47 %3 = icmp ult i32 0, %2
48 br i1 %3, label %bb1, label %bb2