repo.or.cz
/
llvm-core.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[ARM] Better OR's for MVE compares
[llvm-core.git]
/
test
/
Transforms
/
InstCombine
/
pr23751.ll
blob
d7840be2f83744eb720f8da04d6d4aa62e2a528e
1
; RUN: opt -instcombine -S < %s | FileCheck %s
2
3
@d = common global i32 0, align 4
4
5
define i1 @f(i8 zeroext %p) #1 {
6
; CHECK-NOT: ret i1 false
7
%1 = zext i8 %p to i32
8
%2 = load i32, i32* @d, align 4
9
%3 = or i32 %2, -2
10
%4 = add nsw i32 %3, %1
11
%5 = icmp ugt i32 %1, %4
12
ret i1 %5
13
}