1 ; RUN: opt < %s "-passes=print<scalar-evolution>" -disable-output 2>&1 | FileCheck %s
8 define i32 @test1(i32 %x) {
14 ; ScalarEvolution shouldn't try to analyze %z into something like
15 ; --> (zext i4 (-1 + (-1 * (trunc i64 (8 * %x) to i4))) to i64)
17 ; --> (8 * (zext i1 (trunc i64 ((8 * %x) /u 8) to i1) to i64))
20 ; CHECK: --> (8 * (zext i1 (trunc i64 %x to i1) to i64))
22 define i64 @test2(i64 %x) {
29 ; Check that we transform the naive lowering of the sequence below,
30 ; (4 * (zext i5 (2 * (trunc i32 %x to i5)) to i32)),
32 ; (8 * (zext i4 (trunc i32 %x to i4) to i32))
35 define i32 @test3(i32 %x) {
38 ; CHECK-NEXT: --> (8 * (zext i4 (trunc i32 %x to i4) to i32))