1 ; RUN: opt < %s -scalar-evolution -analyze | FileCheck %s 2 3 ; ScalarEvolution shouldn't try to analyze %z into something like 4 ; --> (zext i4 (-1 + (-1 * (trunc i64 (8 * %x) to i4))) to i64) 5 6 ; CHECK: --> (zext i4 (-8 + (trunc i64 (8 * %x) to i4)) to i64) 7 8 define i64 @foo(i64 %x) { 9 %a = shl i64 %x, 3 10 %t = and i64 %a, 8 11 %z = xor i64 %t, 8 12 ret i64 %z 13 } 14