brintos

brintos / llvm-project-archived public Read only

0
0
Text · 603 B · 6869826 Raw
29 lines · plain
1; RUN: llc < %s -mtriple=bpfel -mcpu=v1 | FileCheck %s2 3define i32 @test0(i32 %X) {4  %tmp.1 = add i32 %X, 15  ret i32 %tmp.16; CHECK-LABEL: test0:7; CHECK: r0 += 18}9 10; CHECK-LABEL: store_imm:11; CHECK: *(u32 *)(r1 + 0) = r{{[03]}}12; CHECK: *(u32 *)(r2 + 4) = r{{[03]}}13define i32 @store_imm(ptr %a, ptr %b) {14entry:15  store i32 0, ptr %a, align 416  %0 = getelementptr inbounds i32, ptr %b, i32 117  store i32 0, ptr %0, align 418  ret i32 019}20 21@G = external global i822define zeroext i8 @loadG() {23  %tmp = load i8, ptr @G24  ret i8 %tmp25; CHECK-LABEL: loadG:26; CHECK: r1 =27; CHECK: r0 = *(u8 *)(r1 + 0)28}29