1 ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py
2 ; RUN: opt -disable-output "-passes=print<scalar-evolution>" < %s 2>&1 | FileCheck %s
4 declare i32 @llvm.abs.i32(i32, i1)
6 define i32 @abs_nonsw(i32 %x) {
7 ; CHECK-LABEL: 'abs_nonsw'
8 ; CHECK-NEXT: Classifying expressions for: @abs_nonsw
9 ; CHECK-NEXT: %r = call i32 @llvm.abs.i32(i32 %x, i1 false)
10 ; CHECK-NEXT: --> ((-1 * %x) smax %x) U: full-set S: full-set
11 ; CHECK-NEXT: Determining loop execution counts for: @abs_nonsw
13 %r = call i32 @llvm.abs.i32(i32 %x, i1 0)
17 define i32 @abs_nsw(i32 %x) {
18 ; CHECK-LABEL: 'abs_nsw'
19 ; CHECK-NEXT: Classifying expressions for: @abs_nsw
20 ; CHECK-NEXT: %r = call i32 @llvm.abs.i32(i32 %x, i1 true)
21 ; CHECK-NEXT: --> ((-1 * %x)<nsw> smax %x) U: full-set S: full-set
22 ; CHECK-NEXT: Determining loop execution counts for: @abs_nsw
24 %r = call i32 @llvm.abs.i32(i32 %x, i1 1)