aboutsummaryrefslogtreecommitdiffstats
path: root/test/Bindings/llvm-c/calc.test
blob: 36a76e660330a0db925b3b66f3b818a2766ac9d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llvm-c-test --calc <%s | FileCheck %s

; constant folding
test 100 200 +
;CHECK: ModuleID = 'test'
;CHECK: define i64 @test
;CHECK: {
;CHECK: ret i64 300
;CHECK: }

arg1 0 @ 0 @ * 1 @ 1 @ * +
;CHECK: ModuleID = 'arg1'
;CHECK: getelementptr
;CHECK: load
;CHECK: ret