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
76 lines
2.6 KiB
LLVM
76 lines
2.6 KiB
LLVM
; RUN: llc -mtriple=hexagon < %s | FileCheck %s
|
|
|
|
target triple = "hexagon"
|
|
|
|
; CHECK-LABEL: test1:
|
|
; CHECK-DAG: memw(r29+#12) = ##875770417
|
|
; CHECK-DAG: memw(r29+#8) = #51
|
|
; CHECK-DAG: memh(r29+#6) = #50
|
|
; CHECK-DAG: memb(r29+#5) = #49
|
|
define void @test1() {
|
|
b0:
|
|
%v1 = alloca [1 x i8], align 1
|
|
%v2 = alloca i16, align 2
|
|
%v3 = alloca i32, align 4
|
|
%v4 = alloca i32, align 4
|
|
call void @llvm.lifetime.start(i64 1, ptr %v1)
|
|
store i8 49, ptr %v1, align 1
|
|
call void @llvm.lifetime.start(i64 2, ptr %v2)
|
|
store i16 50, ptr %v2, align 2
|
|
call void @llvm.lifetime.start(i64 4, ptr %v3)
|
|
store i32 51, ptr %v3, align 4
|
|
call void @llvm.lifetime.start(i64 4, ptr %v4)
|
|
store i32 875770417, ptr %v4, align 4
|
|
call void @test4(ptr %v1, ptr %v2, ptr %v3, ptr %v4)
|
|
call void @llvm.lifetime.end(i64 4, ptr %v4)
|
|
call void @llvm.lifetime.end(i64 4, ptr %v3)
|
|
call void @llvm.lifetime.end(i64 2, ptr %v2)
|
|
call void @llvm.lifetime.end(i64 1, ptr %v1)
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: test2:
|
|
; CHECK-DAG: memw(r29+#8) = #51
|
|
; CHECK-DAG: memh(r29+#6) = r{{[0-9]+}}
|
|
; CHECK-DAG: memb(r29+#5) = r{{[0-9]+}}
|
|
define void @test2() {
|
|
b0:
|
|
%v1 = alloca [1 x i8], align 1
|
|
%v2 = alloca i16, align 2
|
|
%v3 = alloca i32, align 4
|
|
%v4 = alloca i32, align 4
|
|
%v5 = alloca [100 x i8], align 8
|
|
%v6 = alloca [101 x i8], align 8
|
|
call void @llvm.lifetime.start(i64 1, ptr %v1)
|
|
store i8 49, ptr %v1, align 1
|
|
call void @llvm.lifetime.start(i64 2, ptr %v2)
|
|
store i16 50, ptr %v2, align 2
|
|
call void @llvm.lifetime.start(i64 4, ptr %v3)
|
|
store i32 51, ptr %v3, align 4
|
|
call void @llvm.lifetime.start(i64 4, ptr %v4)
|
|
store i32 875770417, ptr %v4, align 4
|
|
call void @llvm.lifetime.start(i64 100, ptr %v5)
|
|
call void @llvm.memset.p0.i32(ptr align 8 %v5, i8 0, i32 100, i1 false)
|
|
store i8 50, ptr %v5, align 8
|
|
call void @llvm.lifetime.start(i64 101, ptr %v6)
|
|
call void @llvm.memset.p0.i32(ptr align 8 %v6, i8 0, i32 101, i1 false)
|
|
store i8 49, ptr %v6, align 8
|
|
call void @test3(ptr %v1, ptr %v2, ptr %v3, ptr %v4, ptr %v5, ptr %v6)
|
|
call void @llvm.lifetime.end(i64 101, ptr %v6)
|
|
call void @llvm.lifetime.end(i64 100, ptr %v5)
|
|
call void @llvm.lifetime.end(i64 4, ptr %v4)
|
|
call void @llvm.lifetime.end(i64 4, ptr %v3)
|
|
call void @llvm.lifetime.end(i64 2, ptr %v2)
|
|
call void @llvm.lifetime.end(i64 1, ptr %v1)
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.lifetime.start(i64, ptr nocapture) #0
|
|
declare void @llvm.lifetime.end(i64, ptr nocapture) #0
|
|
declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1) #0
|
|
|
|
declare void @test3(ptr, ptr, ptr, ptr, ptr, ptr)
|
|
declare void @test4(ptr, ptr, ptr, ptr)
|
|
|
|
attributes #0 = { argmemonly nounwind "target-cpu"="hexagonv60" }
|