1 ; RUN: llc -march=bpf -mcpu=v1 < %s | FileCheck %s
4 ; struct t1 { int a; };
5 ; volatile const struct t1 data = { .a = 3 };
10 ; clang -target bpf -O2 -S -emit-llvm test.c
12 %struct.t1 = type { i32 }
14 @data = dso_local constant %struct.t1 { i32 3 }, align 4
16 ; Function Attrs: nofree norecurse nounwind
17 define dso_local i32 @foo() local_unnamed_addr {
19 %0 = load volatile i32, ptr @data, align 4
20 %add = add nsw i32 %0, 20
21 ; CHECK: [[REG1:r[0-9]+]] = data ll
22 ; CHECK: r0 = *(u32 *)([[REG1]] + 0)