blob: 83272801a189787578a5dfd1a5e0417716877c78 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
@x = internal global i64 0
@foo.bar = internal global i64 42
@foo.baz = internal global float 0.000000e+00
@bar.x = internal global i128 1000
@baz.nested.x = internal global i16 0
@baz.x = internal global i128 1000
@baz.y = internal global i64 42
define void @foo() {
entry:
%load = load i64, ptr @foo.bar, align 8
%mul = mul i64 %load, 2
store i64 %mul, ptr @foo.bar, align 8
ret void
}
define i128 @bar() {
entry:
%load = load i128, ptr @bar.x, align 16
ret i128 %load
}
define void @baz.nested() {
entry:
store i16 16, ptr @baz.nested.x, align 2
ret void
}
define i128 @baz() {
entry:
%load = load i128, ptr @baz.x, align 16
ret i128 %load
}
|