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
97 lines
2.1 KiB
LLVM
97 lines
2.1 KiB
LLVM
; RUN: llc < %s | FileCheck %s
|
|
|
|
; Test that basic 32-bit integer comparison operations assemble as expected.
|
|
|
|
target datalayout = "E-m:e-p:32:32-i64:64-a:0:32-n32-S64"
|
|
target triple = "lanai"
|
|
|
|
; CHECK-LABEL: eq_i32:
|
|
; CHECK: sub.f %r{{[0-9]+}}, %r{{[0-9]+}}, %r0
|
|
; CHECK-NEXT: seq
|
|
define i32 @eq_i32(i32 %x, i32 %y) {
|
|
%a = icmp eq i32 %x, %y
|
|
%b = zext i1 %a to i32
|
|
ret i32 %b
|
|
}
|
|
|
|
; CHECK-LABEL: ne_i32:
|
|
; CHECK: sub.f %r{{[0-9]+}}, %r{{[0-9]+}}, %r0
|
|
; CHECK-NEXT: sne
|
|
define i32 @ne_i32(i32 %x, i32 %y) {
|
|
%a = icmp ne i32 %x, %y
|
|
%b = zext i1 %a to i32
|
|
ret i32 %b
|
|
}
|
|
|
|
; CHECK-LABEL: slt_i32:
|
|
; CHECK: sub.f %r{{[0-9]+}}, %r{{[0-9]+}}, %r0
|
|
; CHECK-NEXT: slt
|
|
define i32 @slt_i32(i32 %x, i32 %y) {
|
|
%a = icmp slt i32 %x, %y
|
|
%b = zext i1 %a to i32
|
|
ret i32 %b
|
|
}
|
|
|
|
; CHECK-LABEL: sle_i32:
|
|
; CHECK: sub.f %r{{[0-9]+}}, %r{{[0-9]+}}, %r0
|
|
; CHECK-NEXT: sle
|
|
define i32 @sle_i32(i32 %x, i32 %y) {
|
|
%a = icmp sle i32 %x, %y
|
|
%b = zext i1 %a to i32
|
|
ret i32 %b
|
|
}
|
|
|
|
; CHECK-LABEL: ult_i32:
|
|
; CHECK: sub.f %r{{[0-9]+}}, %r{{[0-9]+}}, %r0
|
|
; CHECK-NEXT: sult
|
|
define i32 @ult_i32(i32 %x, i32 %y) {
|
|
%a = icmp ult i32 %x, %y
|
|
%b = zext i1 %a to i32
|
|
ret i32 %b
|
|
}
|
|
|
|
; CHECK-LABEL: ule_i32:
|
|
; CHECK: sub.f %r{{[0-9]+}}, %r{{[0-9]+}}, %r0
|
|
; CHECK-NEXT: sule
|
|
define i32 @ule_i32(i32 %x, i32 %y) {
|
|
%a = icmp ule i32 %x, %y
|
|
%b = zext i1 %a to i32
|
|
ret i32 %b
|
|
}
|
|
|
|
; CHECK-LABEL: sgt_i32:
|
|
; CHECK: sub.f %r{{[0-9]+}}, %r{{[0-9]+}}, %r0
|
|
; CHECK-NEXT: sgt
|
|
define i32 @sgt_i32(i32 %x, i32 %y) {
|
|
%a = icmp sgt i32 %x, %y
|
|
%b = zext i1 %a to i32
|
|
ret i32 %b
|
|
}
|
|
|
|
; CHECK-LABEL: sge_i32:
|
|
; CHECK: sub.f %r{{[0-9]+}}, %r{{[0-9]+}}, %r0
|
|
; CHECK-NEXT: sge
|
|
define i32 @sge_i32(i32 %x, i32 %y) {
|
|
%a = icmp sge i32 %x, %y
|
|
%b = zext i1 %a to i32
|
|
ret i32 %b
|
|
}
|
|
|
|
; CHECK-LABEL: ugt_i32:
|
|
; CHECK: sub.f %r{{[0-9]+}}, %r{{[0-9]+}}, %r0
|
|
; CHECK-NEXT: sugt
|
|
define i32 @ugt_i32(i32 %x, i32 %y) {
|
|
%a = icmp ugt i32 %x, %y
|
|
%b = zext i1 %a to i32
|
|
ret i32 %b
|
|
}
|
|
|
|
; CHECK-LABEL: uge_i32:
|
|
; CHECK: sub.f %r{{[0-9]+}}, %r{{[0-9]+}}, %r0
|
|
; CHECK-NEXT: suge
|
|
define i32 @uge_i32(i32 %x, i32 %y) {
|
|
%a = icmp uge i32 %x, %y
|
|
%b = zext i1 %a to i32
|
|
ret i32 %b
|
|
}
|