1 ; RUN: opt < %s -scalar-evolution -analyze -enable-new-pm=0 | FileCheck %s
2 ; RUN: opt < %s "-passes=print<scalar-evolution>" -disable-output 2>&1 | FileCheck %s
9 define i32 @test1(i32 %x) {
15 ; ScalarEvolution shouldn't try to analyze %z into something like
16 ; --> (zext i4 (-1 + (-1 * (trunc i64 (8 * %x) to i4))) to i64)
18 ; --> (8 * (zext i1 (trunc i64 ((8 * %x) /u 8) to i1) to i64))
21 ; CHECK: --> (8 * (zext i1 (trunc i64 %x to i1) to i64))
23 define i64 @test2(i64 %x) {
30 ; Check that we transform the naive lowering of the sequence below,
31 ; (4 * (zext i5 (2 * (trunc i32 %x to i5)) to i32)),
33 ; (8 * (zext i4 (trunc i32 %x to i4) to i32))
36 define i32 @test3(i32 %x) {
39 ; CHECK-NEXT: --> (8 * (zext i4 (trunc i32 %x to i4) to i32))