brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · cc2334e Raw
27 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 52; RUN: opt -S -disable-output "-passes=print<scalar-evolution>" < %s 2>&1 | FileCheck %s3 4define i16 @test() {5; CHECK-LABEL: 'test'6; CHECK-NEXT:  Classifying expressions for: @test7; CHECK-NEXT:    %xor = xor i32 0, 38; CHECK-NEXT:    --> %xor U: [3,4) S: [3,4)9; CHECK-NEXT:    %mul = mul i32 %xor, 32910; CHECK-NEXT:    --> (329 * %xor)<nuw><nsw> U: [987,988) S: [987,988)11; CHECK-NEXT:    %conv = trunc i32 %mul to i1612; CHECK-NEXT:    --> (329 * (trunc i32 %xor to i16))<nuw><nsw> U: [987,988) S: [987,988)13; CHECK-NEXT:    %sext = shl i16 %conv, 814; CHECK-NEXT:    --> (18688 * (trunc i32 %xor to i16))<nuw> U: [-9472,-9471) S: [-9472,-9471)15; CHECK-NEXT:    %conv1 = ashr i16 %sext, 816; CHECK-NEXT:    --> (sext i8 (73 * (trunc i32 %xor to i8))<nuw> to i16) U: [-37,-36) S: [-37,-36)17; CHECK-NEXT:  Determining loop execution counts for: @test18;19entry:20  %xor = xor i32 0, 321  %mul = mul i32 %xor, 32922  %conv = trunc i32 %mul to i1623  %sext = shl i16 %conv, 824  %conv1 = ashr i16 %sext, 825  ret i16 %conv126}27