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
[PowerPC] Eliminate compares - add i32 sext/zext handling for SETULT/SETUGT
[llvm-core.git]
/
test
/
Transforms
/
Reassociate
/
absorption.ll
blob
40b3d80eee9d641d676c457a3517b293f5d1e9af
1
; RUN: opt -S -reassociate < %s | FileCheck %s
2
3
; Check that if constants combine to an absorbing value then the expression is
4
; evaluated as the absorbing value.
5
define i8 @foo(i8 %x) {
6
%tmp1 = or i8 %x, 127
7
%tmp2 = or i8 %tmp1, 128
8
ret i8 %tmp2
9
; CHECK-LABEL: @foo(
10
; CHECK: ret i8 -1
11
}