projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Invert and-of-or into or-of-and when doing so would allow us to clear bits of the...
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
and-or-inversion.ll
1
; RUN: opt -S -instcombine < %s | FileCheck %s
2
; <rdar://problem/8285027>
3
4
; CHECK: @func
5
define i32 @func(i32 %a) nounwind ssp align 2 {
6
entry:
7
; CHECK: and i32 %a, -256
8
%0 = or i32 %a, 8
9
; CHECK: or i32 %0, 8
10
%1 = and i32 %0, -248
11
ret i32 %1
12
; CHECK: }
13
}