CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
66 lines
2.4 KiB
LLVM
66 lines
2.4 KiB
LLVM
; RUN: llc < %s -mtriple=bpf -mcpu=v1 | FileCheck %s
|
|
; RUN: llc < %s -mtriple=bpf -mcpu=v2 | FileCheck %s
|
|
; RUN: llc < %s -mtriple=bpf -mcpu=v3 | FileCheck %s
|
|
; RUN: llc < %s -mtriple=bpf -mcpu=v4 | FileCheck %s
|
|
|
|
; Source code:
|
|
; __attribute__((noinline)) long foo1(int a, int b, int c, int d, int e, int f) {
|
|
; return a + b + c + d + e + f;
|
|
; }
|
|
;
|
|
; __attribute__((noinline)) long foo2(int a, int b, int c, int d, int e, int f, int g) {
|
|
; return a + b + c + d + e + f + g;
|
|
; }
|
|
;
|
|
; long bar(int a, int b, int c, int d, int e, int f, int g) {
|
|
; long r1 = foo1(a, b, c, d, e, f + g);
|
|
; long r2 = foo2(a, b, c, d, e, f, g);
|
|
; return r1 + r2;
|
|
; }
|
|
|
|
|
|
define dso_local range(i64 -2147483648, 2147483648) i64 @foo1(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr {
|
|
%7 = add nsw i32 %1, %0
|
|
%8 = add nsw i32 %7, %2
|
|
%9 = add nsw i32 %8, %3
|
|
%10 = add nsw i32 %9, %4
|
|
%11 = add nsw i32 %10, %5
|
|
%12 = sext i32 %11 to i64
|
|
ret i64 %12
|
|
}
|
|
|
|
; CHECK-LABEL: foo1:
|
|
; CHECK: r[[#]] = *(u64 *)(r11 + 8)
|
|
|
|
define dso_local range(i64 -2147483648, 2147483648) i64 @foo2(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr {
|
|
%8 = add nsw i32 %1, %0
|
|
%9 = add nsw i32 %8, %2
|
|
%10 = add nsw i32 %9, %3
|
|
%11 = add nsw i32 %10, %4
|
|
%12 = add nsw i32 %11, %5
|
|
%13 = add nsw i32 %12, %6
|
|
%14 = sext i32 %13 to i64
|
|
ret i64 %14
|
|
}
|
|
|
|
; CHECK-LABEL: foo2:
|
|
; CHECK: r[[#]] = *(u64 *)(r11 + 8)
|
|
; CHECK: r[[#]] = *(u64 *)(r11 + 16)
|
|
|
|
define dso_local range(i64 -4294967296, 4294967295) i64 @bar(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr {
|
|
%8 = add nsw i32 %6, %5
|
|
%9 = tail call i64 @foo1(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %8)
|
|
%10 = tail call i64 @foo2(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6)
|
|
%11 = add nsw i64 %10, %9
|
|
ret i64 %11
|
|
}
|
|
|
|
; CHECK-LABEL: bar:
|
|
; CHECK: r[[#]] = *(u64 *)(r11 + 8)
|
|
; CHECK: r[[#]] = *(u64 *)(r11 + 16)
|
|
; CHECK: *(u64 *)(r11 - 8) = r[[#]]
|
|
; CHECK: call foo1
|
|
; CHECK: *(u64 *)(r11 - 8) = r[[#]]
|
|
; CHECK: *(u64 *)(r11 - 16) = r[[#]]
|
|
; CHECK: call foo2
|