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
[InstCombine] Signed saturation patterns
[llvm-complete.git]
/
test
/
CodeGen
/
X86
/
fold-imm.ll
blob
024c016c6c2c6fd4e9705b1e94c524948285128f
1
; RUN: llc < %s -mtriple=i686-- | FileCheck %s
2
3
define i32 @test(i32 %X) nounwind {
4
entry:
5
%0 = add i32 %X, 1
6
ret i32 %0
7
}
8
9
; CHECK: test
10
; CHECK: inc
11
; CHECK: ret
12
13
define i32 @test2(i32 %X) nounwind {
14
entry:
15
%0 = add i32 %X, 4
16
ret i32 %0
17
}
18
19
; CHECK: test2
20
; CHECK: {{add.*4.*$}}
21
; CHECK: ret