Files
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

110 lines
3.6 KiB
LLVM

; RUN: llc < %s -mtriple=mipsel -mcpu=mips32 -relocation-model=pic | FileCheck %s -check-prefixes=ALL,32-CMOV
; RUN: llc < %s -mtriple=mipsel -mcpu=mips32r2 -relocation-model=pic | FileCheck %s -check-prefixes=ALL,32-CMOV
; RUN: llc < %s -mtriple=mipsel -mcpu=mips32r6 -relocation-model=pic | FileCheck %s -check-prefixes=ALL,32R6
; RUN: llc < %s -mtriple=mipsel -mcpu=mips4 -target-abi n64 -relocation-model=pic | FileCheck %s -check-prefixes=ALL,64-CMOV
; RUN: llc < %s -mtriple=mipsel -mcpu=mips64 -target-abi n64 -relocation-model=pic | FileCheck %s -check-prefixes=ALL,64-CMOV
; RUN: llc < %s -mtriple=mipsel -mcpu=mips64r2 -target-abi n64 -relocation-model=pic | FileCheck %s -check-prefixes=ALL,64-CMOV
; RUN: llc < %s -mtriple=mipsel -mcpu=mips64r6 -target-abi n64 -relocation-model=pic | FileCheck %s -check-prefixes=ALL,64R6
@g1 = external global i32
define i32 @sel_icmp_nez_i32_z0(i32 signext %s) nounwind readonly {
entry:
; ALL-LABEL: sel_icmp_nez_i32_z0:
; 32-CMOV: lw $2, 0(${{[0-9]+}})
; 32-CMOV: movn $2, $zero, $4
; 32R6: lw $[[R0:[0-9]+]], 0(${{[0-9]+}})
; 32R6: seleqz $2, $[[R0]], $4
; 64-CMOV: lw $2, 0(${{[0-9]+}})
; 64-CMOV: movn $2, $zero, $4
; 64R6: lw $[[R0:[0-9]+]], 0(${{[0-9]+}})
; 64R6: seleqz $2, $[[R0]], $4
%tobool = icmp ne i32 %s, 0
%0 = load i32, ptr @g1, align 4
%cond = select i1 %tobool, i32 0, i32 %0
ret i32 %cond
}
define i32 @sel_icmp_nez_i32_z1(i32 signext %s) nounwind readonly {
entry:
; ALL-LABEL: sel_icmp_nez_i32_z1:
; 32-CMOV: lw $2, 0(${{[0-9]+}})
; 32-CMOV: movz $2, $zero, $4
; 32R6: lw $[[R0:[0-9]+]], 0(${{[0-9]+}})
; 32R6: selnez $2, $[[R0]], $4
; 64-CMOV: lw $2, 0(${{[0-9]+}})
; 64-CMOV: movz $2, $zero, $4
; 64R6: lw $[[R0:[0-9]+]], 0(${{[0-9]+}})
; 64R6: selnez $2, $[[R0]], $4
%tobool = icmp ne i32 %s, 0
%0 = load i32, ptr @g1, align 4
%cond = select i1 %tobool, i32 %0, i32 0
ret i32 %cond
}
@g2 = external global i64
define i64 @sel_icmp_nez_i64_z0(i64 %s) nounwind readonly {
entry:
; ALL-LABEL: sel_icmp_nez_i64_z0:
; 32-CMOV-DAG: lw $[[R0:2]], 0(${{[0-9]+}})
; 32-CMOV-DAG: lw $[[R1:3]], 4(${{[0-9]+}})
; 32-CMOV-DAG: movn $[[R0]], $zero, $4
; 32-CMOV-DAG: movn $[[R1]], $zero, $4
; 32R6-DAG: lw $[[R0:[0-9]+]], 0(${{[0-9]+}})
; 32R6-DAG: lw $[[R1:[0-9]+]], 4(${{[0-9]+}})
; 32R6-DAG: or $[[CC:[0-9]+]], $4, $5
; 32R6-DAG: seleqz $2, $[[R0]], $[[CC]]
; 32R6-DAG: seleqz $3, $[[R1]], $[[CC]]
; 64-CMOV: ld $2, 0(${{[0-9]+}})
; 64-CMOV: movn $2, $zero, $4
; 64R6: ld $[[R0:[0-9]+]], 0(${{[0-9]+}})
; 64R6: seleqz $2, $[[R0]], $4
%tobool = icmp ne i64 %s, 0
%0 = load i64, ptr @g2, align 4
%cond = select i1 %tobool, i64 0, i64 %0
ret i64 %cond
}
define i64 @sel_icmp_nez_i64_z1(i64 %s) nounwind readonly {
entry:
; ALL-LABEL: sel_icmp_nez_i64_z1:
; 32-CMOV-DAG: lw $[[R0:2]], 0(${{[0-9]+}})
; 32-CMOV-DAG: lw $[[R1:3]], 4(${{[0-9]+}})
; 32-CMOV-DAG: movz $[[R0]], $zero, $4
; 32-CMOV-DAG: movz $[[R1]], $zero, $4
; 32R6-DAG: lw $[[R0:[0-9]+]], 0(${{[0-9]+}})
; 32R6-DAG: lw $[[R1:[0-9]+]], 4(${{[0-9]+}})
; 32R6-DAG: or $[[CC:[0-9]+]], $4, $5
; 32R6-DAG: selnez $2, $[[R0]], $[[CC]]
; 32R6-DAG: selnez $3, $[[R1]], $[[CC]]
; 64-CMOV: ld $2, 0(${{[0-9]+}})
; 64-CMOV: movz $2, $zero, $4
; 64R6: ld $[[R0:[0-9]+]], 0(${{[0-9]+}})
; 64R6: selnez $2, $[[R0]], $4
%tobool = icmp ne i64 %s, 0
%0 = load i64, ptr @g2, align 4
%cond = select i1 %tobool, i64 %0, i64 0
ret i64 %cond
}