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
78 lines
2.5 KiB
LLVM
78 lines
2.5 KiB
LLVM
; RUN: llc -mtriple=thumbv6m-eabi -verify-machineinstrs %s -o - | FileCheck %s --check-prefixes=CHECK,CHECK-T1
|
|
; RUN: llc -mtriple=thumbv5e-linux-gnueabi -verify-machineinstrs %s -o - | FileCheck %s --check-prefixes=CHECK,CHECK-T1
|
|
; RUN: llc -mtriple=thumbv7m -verify-machineinstrs %s -o - | FileCheck %s --check-prefixes=CHECK,CHECK-T2
|
|
; RUN: llc -mtriple=thumbv7a -verify-machineinstrs %s -o - | FileCheck %s --check-prefixes=CHECK,CHECK-T2
|
|
|
|
%struct1 = type { ptr, ptr, i32 }
|
|
%struct2 = type { i32, i32, ptr }
|
|
|
|
@x1 = external global %struct1, align 4
|
|
@x2 = external global %struct1, align 4
|
|
|
|
declare void @fn1(i32, i32)
|
|
declare void @fn2(ptr)
|
|
|
|
; CHECK-LABEL: test1:
|
|
; CHECK-T1: str r0, [r1]
|
|
; CHECK-T1-NEXT: str r1, [r1, #4]
|
|
; CHECK-T2: strd r0, r1, [r1]
|
|
; CHECK-NOT: stm
|
|
define void @test1(i32 %unused, ptr %x) {
|
|
%second = getelementptr inbounds %struct1, ptr %x, i32 0, i32 1
|
|
store ptr @x1, ptr %x
|
|
store ptr %x, ptr %second
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: test2:
|
|
; CHECK-T1: str r0, [r2]
|
|
; CHECK-T1-NEXT: str r1, [r2, #4]
|
|
; CHECK-T1-NEXT: str r2, [r2, #8]
|
|
; CHECK-T2: stm.w r2, {r0, r1, r2}
|
|
; CHECK-NOT: stm r2!, {r0, r1, r2}
|
|
define i32 @test2(i32 %a, i32 %b, ptr %p) {
|
|
entry:
|
|
%p2 = getelementptr inbounds %struct2, ptr %p, i32 0, i32 1
|
|
%p3 = getelementptr inbounds %struct2, ptr %p, i32 0, i32 2
|
|
store i32 %a, ptr %p, align 4
|
|
store i32 %b, ptr %p2, align 4
|
|
store ptr %p, ptr %p3, align 4
|
|
call void @fn1(i32 %a, i32 %b)
|
|
ret i32 0
|
|
}
|
|
|
|
; CHECK-LABEL: test3:
|
|
; CHECK-T1: str r0, [r2]
|
|
; CHECK-T1-NEXT: str r1, [r2, #4]
|
|
; CHECK-T1-NEXT: str r2, [r2, #8]
|
|
; CHECK-T2: stm.w r2, {r0, r1, r2}
|
|
; CHECK-NOT: stm r2!, {r0, r1, r2}
|
|
define i32 @test3(i32 %a, i32 %b, ptr %p) {
|
|
entry:
|
|
%p2 = getelementptr inbounds %struct2, ptr %p, i32 0, i32 1
|
|
%p3 = getelementptr inbounds %struct2, ptr %p, i32 0, i32 2
|
|
store i32 %a, ptr %p, align 4
|
|
store i32 %b, ptr %p2, align 4
|
|
store ptr %p, ptr %p3, align 4
|
|
%p4 = getelementptr inbounds %struct2, ptr %p, i32 1
|
|
call void @fn2(ptr %p4)
|
|
ret i32 0
|
|
}
|
|
|
|
; FIXME: We should be using stm in both thumb1 and thumb2
|
|
; CHECK-LABEL: test4:
|
|
; CHECK-T1: str r0, [r0]
|
|
; CHECK-T1-NEXT: str r1, [r0, #4]
|
|
; CHECK-T1-NEXT: str r2, [r0, #8]
|
|
; CHECK-T2: stm r0!, {r0, r1, r2}
|
|
define i32 @test4(ptr %p, ptr %q, i32 %a) {
|
|
entry:
|
|
%p2 = getelementptr inbounds %struct1, ptr %p, i32 0, i32 1
|
|
%p3 = getelementptr inbounds %struct1, ptr %p, i32 0, i32 2
|
|
store ptr %p, ptr %p, align 4
|
|
store ptr %q, ptr %p2, align 4
|
|
store i32 %a, ptr %p3, align 4
|
|
call void @fn1(i32 %a, i32 %a)
|
|
ret i32 0
|
|
}
|