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
74 lines
2.8 KiB
YAML
74 lines
2.8 KiB
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -mtriple=aarch64-- -verify-machineinstrs -run-pass=legalizer %s -o - | FileCheck %s
|
|
---
|
|
name: test_udivrem_64
|
|
body: |
|
|
bb.0.entry:
|
|
; CHECK-LABEL: name: test_udivrem_64
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $x0
|
|
; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(s64) = COPY $x1
|
|
; CHECK-NEXT: [[UDIV:%[0-9]+]]:_(s64) = G_UDIV [[COPY]], [[COPY1]]
|
|
; CHECK-NEXT: [[MUL:%[0-9]+]]:_(s64) = G_MUL [[UDIV]], [[COPY1]]
|
|
; CHECK-NEXT: [[SUB:%[0-9]+]]:_(s64) = G_SUB [[COPY]], [[MUL]]
|
|
; CHECK-NEXT: $x0 = COPY [[UDIV]](s64)
|
|
; CHECK-NEXT: $x1 = COPY [[SUB]](s64)
|
|
%0:_(s64) = COPY $x0
|
|
%1:_(s64) = COPY $x1
|
|
%2:_(s64), %3:_(s64) = G_UDIVREM %0, %1
|
|
$x0 = COPY %2(s64)
|
|
$x1 = COPY %3(s64)
|
|
|
|
...
|
|
---
|
|
name: test_sdivrem_32
|
|
body: |
|
|
bb.0.entry:
|
|
; CHECK-LABEL: name: test_sdivrem_32
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $x0
|
|
; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(s64) = COPY $x1
|
|
; CHECK-NEXT: [[TRUNC:%[0-9]+]]:_(s32) = G_TRUNC [[COPY]](s64)
|
|
; CHECK-NEXT: [[TRUNC1:%[0-9]+]]:_(s32) = G_TRUNC [[COPY1]](s64)
|
|
; CHECK-NEXT: [[SDIV:%[0-9]+]]:_(s32) = G_SDIV [[TRUNC]], [[TRUNC1]]
|
|
; CHECK-NEXT: [[MUL:%[0-9]+]]:_(s32) = G_MUL [[SDIV]], [[TRUNC1]]
|
|
; CHECK-NEXT: [[SUB:%[0-9]+]]:_(s32) = G_SUB [[TRUNC]], [[MUL]]
|
|
; CHECK-NEXT: $w0 = COPY [[SDIV]](s32)
|
|
; CHECK-NEXT: $w1 = COPY [[SUB]](s32)
|
|
%0:_(s64) = COPY $x0
|
|
%1:_(s64) = COPY $x1
|
|
%2:_(s32) = G_TRUNC %0(s64)
|
|
%3:_(s32) = G_TRUNC %1(s64)
|
|
%4:_(s32), %5:_(s32) = G_SDIVREM %2, %3
|
|
$w0 = COPY %4(s32)
|
|
$w1 = COPY %5(s32)
|
|
|
|
...
|
|
---
|
|
name: test_sdivrem_8
|
|
body: |
|
|
bb.0.entry:
|
|
; CHECK-LABEL: name: test_sdivrem_8
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $x0
|
|
; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(s64) = COPY $x1
|
|
; CHECK-NEXT: [[TRUNC:%[0-9]+]]:_(s32) = G_TRUNC [[COPY]](s64)
|
|
; CHECK-NEXT: [[SEXT_INREG:%[0-9]+]]:_(s32) = G_SEXT_INREG [[TRUNC]], 8
|
|
; CHECK-NEXT: [[TRUNC1:%[0-9]+]]:_(s32) = G_TRUNC [[COPY1]](s64)
|
|
; CHECK-NEXT: [[SEXT_INREG1:%[0-9]+]]:_(s32) = G_SEXT_INREG [[TRUNC1]], 8
|
|
; CHECK-NEXT: [[SDIV:%[0-9]+]]:_(s32) = G_SDIV [[SEXT_INREG]], [[SEXT_INREG1]]
|
|
; CHECK-NEXT: [[COPY2:%[0-9]+]]:_(s32) = COPY [[TRUNC1]](s32)
|
|
; CHECK-NEXT: [[MUL:%[0-9]+]]:_(s32) = G_MUL [[SDIV]], [[COPY2]]
|
|
; CHECK-NEXT: [[COPY3:%[0-9]+]]:_(s32) = COPY [[TRUNC]](s32)
|
|
; CHECK-NEXT: [[SUB:%[0-9]+]]:_(s32) = G_SUB [[COPY3]], [[MUL]]
|
|
; CHECK-NEXT: $w0 = COPY [[SDIV]](s32)
|
|
; CHECK-NEXT: $w1 = COPY [[SUB]](s32)
|
|
%0:_(s64) = COPY $x0
|
|
%1:_(s64) = COPY $x1
|
|
%2:_(s8) = G_TRUNC %0(s64)
|
|
%3:_(s8) = G_TRUNC %1(s64)
|
|
%4:_(s8), %5:_(s8) = G_SDIVREM %2, %3
|
|
%6:_(s32) = G_ANYEXT %4(s8)
|
|
%7:_(s32) = G_ANYEXT %5(s8)
|
|
$w0 = COPY %6(s32)
|
|
$w1 = COPY %7(s32)
|
|
|
|
...
|