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
42 lines
1.1 KiB
LLVM
42 lines
1.1 KiB
LLVM
; RUN: llc < %s | FileCheck %s
|
|
|
|
; Test that Lanai select instruction is selected from LLVM select instruction.
|
|
|
|
target datalayout = "E-m:e-p:32:32-i64:64-a:0:32-n32-S64"
|
|
target triple = "lanai"
|
|
|
|
; CHECK-LABEL: select_i32_bool:
|
|
; CHECK: sub.f %r6, 0x0, %r0
|
|
; CHECK: sel.ne %r7, %r18, %rv
|
|
define i32 @select_i32_bool(i1 zeroext inreg %a, i32 inreg %b, i32 inreg %c) {
|
|
%cond = select i1 %a, i32 %b, i32 %c
|
|
ret i32 %cond
|
|
}
|
|
|
|
; CHECK-LABEL: select_i32_eq:
|
|
; CHECK: sub.f %r6, 0x0, %r0
|
|
; CHECK: sel.eq %r7, %r18, %rv
|
|
define i32 @select_i32_eq(i32 inreg %a, i32 inreg %b, i32 inreg %c) {
|
|
%cmp = icmp eq i32 %a, 0
|
|
%cond = select i1 %cmp, i32 %b, i32 %c
|
|
ret i32 %cond
|
|
}
|
|
|
|
; CHECK-LABEL: select_i32_ne:
|
|
; CHECK: sub.f %r6, 0x0, %r0
|
|
; CHECK: sel.ne %r7, %r18, %rv
|
|
define i32 @select_i32_ne(i32 inreg %a, i32 inreg %b, i32 inreg %c) {
|
|
%cmp = icmp ne i32 %a, 0
|
|
%cond = select i1 %cmp, i32 %b, i32 %c
|
|
ret i32 %cond
|
|
}
|
|
|
|
; CHECK-LABEL: select_i32_lt:
|
|
; CHECK: sub.f %r6, %r7, %r0
|
|
; CHECK: sel.lt %r6, %r7, %rv
|
|
define i32 @select_i32_lt(i32 inreg %x, i32 inreg %y) #0 {
|
|
%1 = icmp slt i32 %x, %y
|
|
%2 = select i1 %1, i32 %x, i32 %y
|
|
ret i32 %2
|
|
}
|