mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 23:31:32 +00:00
f2f6ce65b7
input filename so that opt doesn't print the input filename in the output so that grep lines in the tests don't unintentionally match strings in the input filename. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81537 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
378 B
LLVM
13 lines
378 B
LLVM
; RUN: opt < %s -scalar-evolution -disable-output -analyze \
|
|
; RUN: | grep {\\--> (zext i4 (-8 + (trunc i64 (8 \\* %x) to i4)) to i64)}
|
|
|
|
; ScalarEvolution shouldn't try to analyze %z into something like
|
|
; --> (zext i4 (-1 + (-1 * (trunc i64 (8 * %x) to i4))) to i64)
|
|
|
|
define i64 @foo(i64 %x) {
|
|
%a = shl i64 %x, 3
|
|
%t = and i64 %a, 8
|
|
%z = xor i64 %t, 8
|
|
ret i64 %z
|
|
}
|