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
60 lines
1.5 KiB
LLVM
60 lines
1.5 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple thumbv7-eabi | FileCheck %s -check-prefix=T2
|
|
; RUN: llc < %s -mtriple thumbv6m-eabi | FileCheck %s -check-prefix=T1
|
|
; <rdar://problem/7569620>
|
|
|
|
define i32 @compare_i_gt(i32 %a) {
|
|
; T2-LABEL: compare_i_gt:
|
|
; T2: @ %bb.0: @ %entry
|
|
; T2-NEXT: movs r1, #24
|
|
; T2-NEXT: cmn.w r0, #78
|
|
; T2-NEXT: it gt
|
|
; T2-NEXT: movgt r1, #42
|
|
; T2-NEXT: mov r0, r1
|
|
; T2-NEXT: bx lr
|
|
;
|
|
; T1-LABEL: compare_i_gt:
|
|
; T1: @ %bb.0: @ %entry
|
|
; T1-NEXT: movs r1, #77
|
|
; T1-NEXT: mvns r1, r1
|
|
; T1-NEXT: cmp r0, r1
|
|
; T1-NEXT: bgt .LBB0_2
|
|
; T1-NEXT: @ %bb.1: @ %entry
|
|
; T1-NEXT: movs r0, #24
|
|
; T1-NEXT: bx lr
|
|
; T1-NEXT: .LBB0_2:
|
|
; T1-NEXT: movs r0, #42
|
|
; T1-NEXT: bx lr
|
|
entry:
|
|
%cmp = icmp sgt i32 %a, -78
|
|
%ret = select i1 %cmp, i32 42, i32 24
|
|
ret i32 %ret
|
|
}
|
|
|
|
define i32 @compare_r_eq(i32 %a, i32 %b) {
|
|
; T2-LABEL: compare_r_eq:
|
|
; T2: @ %bb.0: @ %entry
|
|
; T2-NEXT: movs r2, #24
|
|
; T2-NEXT: cmn r0, r1
|
|
; T2-NEXT: it eq
|
|
; T2-NEXT: moveq r2, #42
|
|
; T2-NEXT: mov r0, r2
|
|
; T2-NEXT: bx lr
|
|
;
|
|
; T1-LABEL: compare_r_eq:
|
|
; T1: @ %bb.0: @ %entry
|
|
; T1-NEXT: cmn r0, r1
|
|
; T1-NEXT: beq .LBB1_2
|
|
; T1-NEXT: @ %bb.1: @ %entry
|
|
; T1-NEXT: movs r0, #24
|
|
; T1-NEXT: bx lr
|
|
; T1-NEXT: .LBB1_2:
|
|
; T1-NEXT: movs r0, #42
|
|
; T1-NEXT: bx lr
|
|
entry:
|
|
%sub = sub nsw i32 0, %b
|
|
%cmp = icmp eq i32 %a, %sub
|
|
%ret = select i1 %cmp, i32 42, i32 24
|
|
ret i32 %ret
|
|
}
|