1 ; RUN: opt < %s -disable-output "-passes=print<scalar-evolution>" 2>&1 | FileCheck %s
3 ; CHECK: Printing analysis 'Scalar Evolution Analysis' for function 'test1'
4 ; CHECK-NOT: (trunc i{{.*}}ext
6 define i16 @test1(i8 %x) {
8 %B = trunc i32 %A to i16
12 ; CHECK: Printing analysis 'Scalar Evolution Analysis' for function 'test2'
13 ; CHECK-NOT: (trunc i{{.*}}ext
15 define i8 @test2(i16 %x) {
16 %A = sext i16 %x to i32
17 %B = trunc i32 %A to i8
21 ; CHECK: Printing analysis 'Scalar Evolution Analysis' for function 'test3'
22 ; CHECK-NOT: (trunc i{{.*}}ext
24 define i16 @test3(i16 %x) {
25 %A = sext i16 %x to i32
26 %B = trunc i32 %A to i16
30 ; CHECK: Printing analysis 'Scalar Evolution Analysis' for function 'test4'
31 ; CHECK-NOT: (trunc i{{.*}}ext
33 define i16 @test4(i8 %x) {
34 %A = zext i8 %x to i32
35 %B = trunc i32 %A to i16
39 ; CHECK: Printing analysis 'Scalar Evolution Analysis' for function 'test5'
40 ; CHECK-NOT: (trunc i{{.*}}ext
42 define i8 @test5(i16 %x) {
43 %A = zext i16 %x to i32
44 %B = trunc i32 %A to i8
48 ; CHECK: Printing analysis 'Scalar Evolution Analysis' for function 'test6'
49 ; CHECK-NOT: (trunc i{{.*}}ext
51 define i16 @test6(i16 %x) {
52 %A = zext i16 %x to i32
53 %B = trunc i32 %A to i16