repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
IndVarSimplify
/
shrunk-constant.ll
blob
8ec8ec2c9e1f2cefa6c26fd81a4fd97f347f4fa6
1
; RUN: opt < %s -passes='print<scalar-evolution>' 2>&1 | FileCheck %s
2
3
; CHECK: --> (1 + (zext i4 {-8,+,-8}<%loop> to i32))<nuw><nsw>
4
5
define fastcc void @foo() nounwind {
6
entry:
7
br label %loop
8
9
loop:
10
%i = phi i32 [ 0, %entry ], [ %t2, %loop ]
11
%t0 = add i32 %i, 9
12
%t1 = and i32 %t0, 9
13
store i32 %t1, ptr null
14
%t2 = add i32 %i, 8
15
br label %loop
16
}