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
84 lines
2.3 KiB
LLVM
84 lines
2.3 KiB
LLVM
; RUN: llc -O2 -mtriple=thumbv7m-eabi < %s | FileCheck %s
|
|
; RUN: llc -O2 -mtriple=thumbv8m.main-eabi < %s | FileCheck %s
|
|
|
|
define dso_local i32 @test_for_tbb_tbh_cases(i32 noundef %x) local_unnamed_addr #0 {
|
|
entry:
|
|
switch i32 %x, label %sw.default [
|
|
i32 0, label %sw.bb
|
|
i32 1, label %return
|
|
i32 2, label %sw.bb2
|
|
i32 3, label %sw.bb3
|
|
]
|
|
|
|
sw.bb: ; preds = %entry
|
|
%call = tail call i32 @g(i32 noundef 0) #2
|
|
%add = add nsw i32 %call, 1
|
|
br label %return
|
|
|
|
sw.bb2: ; preds = %entry
|
|
br label %return
|
|
|
|
sw.bb3: ; preds = %entry
|
|
br label %return
|
|
|
|
sw.default: ; preds = %entry
|
|
br label %return
|
|
|
|
return: ; preds = %entry, %sw.default, %sw.bb3, %sw.bb2, %sw.bb
|
|
%retval.0 = phi i32 [ 5, %sw.default ], [ 4, %sw.bb3 ], [ 3, %sw.bb2 ], [ %add, %sw.bb ], [ 2, %entry ]
|
|
ret i32 %retval.0
|
|
|
|
; CHECK: tbb [pc, r1]
|
|
; CHECK-LABEL: .LBB0_3:
|
|
; CHECK-NOT: bti
|
|
; CHECK-LABEL: .LBB0_4:
|
|
; CHECK-NOT: bti
|
|
; CHECK-LABEL: .LBB0_5:
|
|
; CHECK-NOT: bti
|
|
; CHECK-LABEL: .LBB0_6:
|
|
; CHECK-NOT: bti
|
|
; CHECK-LABEL: .LBB0_7:
|
|
; CHECK-NOT: bti
|
|
}
|
|
|
|
declare dso_local i32 @g(i32 noundef) local_unnamed_addr #1
|
|
|
|
define dso_local i32 @test_for_direct_jump_cases(i32 noundef %x) local_unnamed_addr #0 {
|
|
entry:
|
|
switch i32 %x, label %sw.default [
|
|
i32 0, label %sw.bb
|
|
i32 2, label %cleanup
|
|
i32 8, label %sw.bb2
|
|
i32 5, label %sw.bb3
|
|
]
|
|
|
|
sw.bb: ; preds = %entry
|
|
tail call void asm sideeffect ".space 140000", ""()
|
|
br label %cleanup
|
|
|
|
sw.bb2: ; preds = %entry
|
|
br label %cleanup
|
|
|
|
sw.bb3: ; preds = %entry
|
|
br label %cleanup
|
|
|
|
sw.default: ; preds = %entry
|
|
br label %cleanup
|
|
|
|
cleanup: ; preds = %entry, %sw.default, %sw.bb3, %sw.bb2, %sw.bb
|
|
%retval.0 = phi i32 [ 5, %sw.default ], [ 4, %sw.bb3 ], [ 3, %sw.bb2 ], [ 1, %sw.bb ], [ %x, %entry ]
|
|
ret i32 %retval.0
|
|
|
|
; CHECK: mov pc, r1
|
|
; CHECK-LABEL: .LBB1_3:
|
|
; CHECK-NOT: bti
|
|
; CHECK-LABEL: .LBB1_4:
|
|
; CHECK-NOT: bti
|
|
; CHECK-LABEL: .LBB1_5:
|
|
; CHECK-NOT: bti
|
|
; CHECK-LABEL: .LBB1_6:
|
|
; CHECK-NOT: bti
|
|
; CHECK-LABEL: .LBB1_7:
|
|
; CHECK-NOT: bti
|
|
}
|