1 ; RUN: llc < %s -march=bpfel | FileCheck %s
3 define void @test() #0 {
8 ; CHECK: *(u16 *)(r1 + 0) = r0
10 store volatile i16 %0, i16* @g_i16
13 ; CHECK: *(u32 *)(r1 + 0) = r0
14 %1 = call i32 @f_i32()
15 store volatile i32 %1, i32* @g_i32
18 ; CHECK: *(u64 *)(r1 + 0) = r0
19 %2 = call i64 @f_i64()
20 store volatile i64 %2, i64* @g_i64
25 @g_i16 = common global i16 0, align 2
26 @g_i32 = common global i32 0, align 2
27 @g_i64 = common global i64 0, align 2
29 define i16 @f_i16() #0 {
36 define i32 @f_i32() #0 {
38 ; CHECK: r0 = 16909060
43 define i64 @f_i64() #0 {
45 ; CHECK: r0 = 72623859790382856 ll
47 ret i64 72623859790382856