repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[ARM] Split large truncating MVE stores
[llvm-complete.git]
/
test
/
Analysis
/
ValueTracking
/
knownnonzero-shift.ll
blob
e59d19cc2e268645e11d79235361bcec33c0347b
1
; RUN: opt -instsimplify -S < %s | FileCheck %s
2
3
; CHECK-LABEL: @test
4
define i1 @test(i8 %p, i8* %pq) {
5
%q = load i8, i8* %pq, !range !0 ; %q is known nonzero; no known bits
6
%1 = shl i8 %p, %q ; because %q is nonzero, %1[0] is known to be zero.
7
%2 = and i8 %1, 1
8
%x = icmp eq i8 %2, 0
9
; CHECK: ret i1 true
10
ret i1 %x
11
}
12
13
!0 = !{ i8 1, i8 5 }