blob: 9b02bb803ff58a01cd23dd4938d6864fb301aa1e [file] [log] [blame]
Dan Gohmane49ae432009-06-17 01:22:39 +00001; 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
6define 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}