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
4 define i8 @foo(i8 %a) {
7 ; CHECK: %t0 = urem i8 %a, 27
8 ; CHECK-NEXT: --> ((-27 * (%a /u 27)) + %a)
12 define i8 @bar(i8 %a) {
15 ; CHECK: %t1 = urem i8 %a, 1
20 define i8 @baz(i8 %a) {
23 ; CHECK: %t2 = urem i8 %a, 32
24 ; CHECK-NEXT: --> (zext i5 (trunc i8 %a to i5) to i8)
28 define i8 @qux(i8 %a) {
31 ; CHECK: %t3 = urem i8 %a, 2
32 ; CHECK-NEXT: --> (zext i1 (trunc i8 %a to i1) to i8)