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
/
Bindings
/
llvm-c
/
calc.test
blob
36a76e660330a0db925b3b66f3b818a2766ac9d7
1
; RUN: llvm-c-test --calc <%s | FileCheck %s
2
3
; constant folding
4
test 100 200 +
5
;CHECK: ModuleID = 'test'
6
;CHECK: define i64 @test
7
;CHECK: {
8
;CHECK: ret i64 300
9
;CHECK: }
10
11
arg1 0 @ 0 @ * 1 @ 1 @ * +
12
;CHECK: ModuleID = 'arg1'
13
;CHECK: getelementptr
14
;CHECK: load
15
;CHECK: ret