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
79 lines
1.9 KiB
LLVM
79 lines
1.9 KiB
LLVM
; RUN: llc < %s -mtriple=aarch64 -mattr=+mte | FileCheck %s
|
|
|
|
define void @stgp0(i64 %a, i64 %b, ptr %p) {
|
|
entry:
|
|
; CHECK-LABEL: stgp0:
|
|
; CHECK: stgp x0, x1, [x2]
|
|
; CHECK: ret
|
|
call void @llvm.aarch64.stgp(ptr %p, i64 %a, i64 %b)
|
|
ret void
|
|
}
|
|
|
|
define void @stgp1004(i64 %a, i64 %b, ptr %p) {
|
|
entry:
|
|
; CHECK-LABEL: stgp1004:
|
|
; CHECK: add [[R:x[0-9]+]], x2, #1004
|
|
; CHECK: stgp x0, x1, [[[R]]]
|
|
; CHECK: ret
|
|
%q = getelementptr i8, ptr %p, i32 1004
|
|
call void @llvm.aarch64.stgp(ptr %q, i64 %a, i64 %b)
|
|
ret void
|
|
}
|
|
|
|
define void @stgp1008(i64 %a, i64 %b, ptr %p) {
|
|
entry:
|
|
; CHECK-LABEL: stgp1008:
|
|
; CHECK: stgp x0, x1, [x2, #1008]
|
|
; CHECK: ret
|
|
%q = getelementptr i8, ptr %p, i32 1008
|
|
call void @llvm.aarch64.stgp(ptr %q, i64 %a, i64 %b)
|
|
ret void
|
|
}
|
|
|
|
define void @stgp1024(i64 %a, i64 %b, ptr %p) {
|
|
entry:
|
|
; CHECK-LABEL: stgp1024:
|
|
; CHECK: add [[R:x[0-9]+]], x2, #1024
|
|
; CHECK: stgp x0, x1, [[[R]]]
|
|
; CHECK: ret
|
|
%q = getelementptr i8, ptr %p, i32 1024
|
|
call void @llvm.aarch64.stgp(ptr %q, i64 %a, i64 %b)
|
|
ret void
|
|
}
|
|
|
|
define void @stgp_1024(i64 %a, i64 %b, ptr %p) {
|
|
entry:
|
|
; CHECK-LABEL: stgp_1024:
|
|
; CHECK: stgp x0, x1, [x2, #-1024]
|
|
; CHECK: ret
|
|
%q = getelementptr i8, ptr %p, i32 -1024
|
|
call void @llvm.aarch64.stgp(ptr %q, i64 %a, i64 %b)
|
|
ret void
|
|
}
|
|
|
|
define void @stgp_1040(i64 %a, i64 %b, ptr %p) {
|
|
entry:
|
|
; CHECK-LABEL: stgp_1040:
|
|
; CHECK: sub [[R:x[0-9]+]], x2, #1040
|
|
; CHECK: stgp x0, x1, [x{{.*}}]
|
|
; CHECK: ret
|
|
%q = getelementptr i8, ptr %p, i32 -1040
|
|
call void @llvm.aarch64.stgp(ptr %q, i64 %a, i64 %b)
|
|
ret void
|
|
}
|
|
|
|
define void @stgp_alloca(i64 %a, i64 %b) {
|
|
entry:
|
|
; CHECK-LABEL: stgp_alloca:
|
|
; CHECK: stgp x0, x1, [sp, #-32]!
|
|
; CHECK: stgp x1, x0, [sp, #16]
|
|
; CHECK: ret
|
|
%x = alloca i8, i32 32, align 16
|
|
call void @llvm.aarch64.stgp(ptr %x, i64 %a, i64 %b)
|
|
%x1 = getelementptr i8, ptr %x, i32 16
|
|
call void @llvm.aarch64.stgp(ptr %x1, i64 %b, i64 %a)
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.aarch64.stgp(ptr %p, i64 %a, i64 %b)
|