aboutsummaryrefslogtreecommitdiff
path: root/test/data/constants.ll
blob: bc517ad7ca9e2ca9cf5782067d3c866d5e112ee1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
define i64 @foo() {
entry:
  %x = alloca i64, align 8
  store i64 42, ptr %x, align 8
  %load = load i64, ptr %x, align 8
  %add = add i64 %load, 84
  ret i64 %add
}

define i64 @bar() {
entry:
  ret i64 43
}