9b02bb803ff58a01cd23dd4938d6864fb301aa1e
[oota-llvm.git] / test / Analysis / ScalarEvolution / xor-and.ll
1 ; RUN: llvm-as < %s | opt -scalar-evolution -disable-output -analyze | grep {\\-->  %z}
2
3 ; ScalarEvolution shouldn't try to analyze %s into something like
4 ;   -->  (zext i4 (-1 + (-1 * (trunc i64 (8 * %x) to i4))) to i64)
5
6 define i64 @foo(i64 %x) {
7   %a = shl i64 %x, 3
8   %t = and i64 %a, 8
9   %z = xor i64 %t, 8
10   ret i64 %z
11 }