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
338 lines
11 KiB
YAML
338 lines
11 KiB
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -mtriple=amdgcn -mcpu=gfx1150 -run-pass=amdgpu-regbankselect,amdgpu-regbanklegalize %s -verify-machineinstrs -o - | FileCheck --check-prefixes=GFX1150 %s
|
|
|
|
---
|
|
name: fadd_f32
|
|
legalized: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $sgpr0, $sgpr1
|
|
|
|
; GFX1150-LABEL: name: fadd_f32
|
|
; GFX1150: liveins: $sgpr0, $sgpr1
|
|
; GFX1150-NEXT: {{ $}}
|
|
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
|
|
; GFX1150-NEXT: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
|
|
; GFX1150-NEXT: [[FADD:%[0-9]+]]:sgpr(s32) = G_FADD [[COPY]], [[COPY1]]
|
|
%0:_(s32) = COPY $sgpr0
|
|
%1:_(s32) = COPY $sgpr1
|
|
%2:_(s32) = G_FADD %0, %1
|
|
...
|
|
|
|
---
|
|
name: fptosi_f32_to_i32
|
|
legalized: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $sgpr0
|
|
|
|
; GFX1150-LABEL: name: fptosi_f32_to_i32
|
|
; GFX1150: liveins: $sgpr0
|
|
; GFX1150-NEXT: {{ $}}
|
|
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
|
|
; GFX1150-NEXT: [[FPTOSI:%[0-9]+]]:sgpr(s32) = G_FPTOSI [[COPY]](s32)
|
|
%0:_(s32) = COPY $sgpr0
|
|
%1:_(s32) = G_FPTOSI %0(s32)
|
|
...
|
|
|
|
---
|
|
name: fptoui_f32_to_u32
|
|
legalized: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $sgpr0
|
|
|
|
; GFX1150-LABEL: name: fptoui_f32_to_u32
|
|
; GFX1150: liveins: $sgpr0
|
|
; GFX1150-NEXT: {{ $}}
|
|
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
|
|
; GFX1150-NEXT: [[FPTOUI:%[0-9]+]]:sgpr(s32) = G_FPTOUI [[COPY]](s32)
|
|
%0:_(s32) = COPY $sgpr0
|
|
%1:_(s32) = G_FPTOUI %0(s32)
|
|
...
|
|
|
|
---
|
|
name: fptosi_sat_f32_to_i32
|
|
legalized: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $sgpr0
|
|
|
|
; GFX1150-LABEL: name: fptosi_sat_f32_to_i32
|
|
; GFX1150: liveins: $sgpr0
|
|
; GFX1150-NEXT: {{ $}}
|
|
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
|
|
; GFX1150-NEXT: [[FPTOSI_SAT:%[0-9]+]]:sgpr(s32) = G_FPTOSI_SAT [[COPY]](s32)
|
|
%0:_(s32) = COPY $sgpr0
|
|
%1:_(s32) = G_FPTOSI_SAT %0(s32)
|
|
...
|
|
|
|
---
|
|
name: fptoui_sat_f32_to_u32
|
|
legalized: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $sgpr0
|
|
|
|
; GFX1150-LABEL: name: fptoui_sat_f32_to_u32
|
|
; GFX1150: liveins: $sgpr0
|
|
; GFX1150-NEXT: {{ $}}
|
|
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
|
|
; GFX1150-NEXT: [[FPTOUI_SAT:%[0-9]+]]:sgpr(s32) = G_FPTOUI_SAT [[COPY]](s32)
|
|
%0:_(s32) = COPY $sgpr0
|
|
%1:_(s32) = G_FPTOUI_SAT %0(s32)
|
|
...
|
|
|
|
---
|
|
name: sitofp_i32_to_f32
|
|
legalized: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $sgpr0
|
|
|
|
; GFX1150-LABEL: name: sitofp_i32_to_f32
|
|
; GFX1150: liveins: $sgpr0
|
|
; GFX1150-NEXT: {{ $}}
|
|
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
|
|
; GFX1150-NEXT: [[SITOFP:%[0-9]+]]:sgpr(s32) = G_SITOFP [[COPY]](s32)
|
|
%0:_(s32) = COPY $sgpr0
|
|
%1:_(s32) = G_SITOFP %0(s32)
|
|
...
|
|
|
|
---
|
|
name: uitofp_u32_to_f32
|
|
legalized: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $sgpr0
|
|
|
|
; GFX1150-LABEL: name: uitofp_u32_to_f32
|
|
; GFX1150: liveins: $sgpr0
|
|
; GFX1150-NEXT: {{ $}}
|
|
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
|
|
; GFX1150-NEXT: [[UITOFP:%[0-9]+]]:sgpr(s32) = G_UITOFP [[COPY]](s32)
|
|
%0:_(s32) = COPY $sgpr0
|
|
%1:_(s32) = G_UITOFP %0(s32)
|
|
...
|
|
|
|
---
|
|
name: fptrunc_f32_to_f16
|
|
legalized: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $sgpr0
|
|
|
|
; GFX1150-LABEL: name: fptrunc_f32_to_f16
|
|
; GFX1150: liveins: $sgpr0
|
|
; GFX1150-NEXT: {{ $}}
|
|
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
|
|
; GFX1150-NEXT: [[FPTRUNC:%[0-9]+]]:sgpr(s16) = G_FPTRUNC [[COPY]](s32)
|
|
%0:_(s32) = COPY $sgpr0
|
|
%1:_(s16) = G_FPTRUNC %0(s32)
|
|
...
|
|
|
|
---
|
|
name: fpext_f16_to_f32
|
|
legalized: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $sgpr0
|
|
|
|
; GFX1150-LABEL: name: fpext_f16_to_f32
|
|
; GFX1150: liveins: $sgpr0
|
|
; GFX1150-NEXT: {{ $}}
|
|
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
|
|
; GFX1150-NEXT: [[TRUNC:%[0-9]+]]:sgpr(s16) = G_TRUNC [[COPY]](s32)
|
|
%1:_(s32) = COPY $sgpr0
|
|
%0:_(s16) = G_TRUNC %1(s32)
|
|
...
|
|
|
|
# Tests below should not select scalar registers
|
|
# TODO: G_UNMERGE_VALUES, G_AMDGPU_READANYLANE, G_MERGE_VALUES should be combined away.
|
|
---
|
|
name: fadd_f64
|
|
legalized: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $sgpr0_sgpr1, $sgpr2_sgpr3
|
|
|
|
; GFX1150-LABEL: name: fadd_f64
|
|
; GFX1150: liveins: $sgpr0_sgpr1, $sgpr2_sgpr3
|
|
; GFX1150-NEXT: {{ $}}
|
|
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sgpr(s64) = COPY $sgpr0_sgpr1
|
|
; GFX1150-NEXT: [[COPY1:%[0-9]+]]:sgpr(s64) = COPY $sgpr2_sgpr3
|
|
; GFX1150-NEXT: [[COPY2:%[0-9]+]]:vgpr(s64) = COPY [[COPY]](s64)
|
|
; GFX1150-NEXT: [[COPY3:%[0-9]+]]:vgpr(s64) = COPY [[COPY1]](s64)
|
|
; GFX1150-NEXT: [[FADD:%[0-9]+]]:vgpr(s64) = G_FADD [[COPY2]], [[COPY3]]
|
|
; GFX1150-NEXT: [[UV:%[0-9]+]]:vgpr(s32), [[UV1:%[0-9]+]]:vgpr(s32) = G_UNMERGE_VALUES [[FADD]](s64)
|
|
; GFX1150-NEXT: [[AMDGPU_READANYLANE:%[0-9]+]]:sgpr(s32) = G_AMDGPU_READANYLANE [[UV]]
|
|
; GFX1150-NEXT: [[AMDGPU_READANYLANE1:%[0-9]+]]:sgpr(s32) = G_AMDGPU_READANYLANE [[UV1]]
|
|
; GFX1150-NEXT: [[MV:%[0-9]+]]:sgpr(s64) = G_MERGE_VALUES [[AMDGPU_READANYLANE]](s32), [[AMDGPU_READANYLANE1]](s32)
|
|
%0:_(s64) = COPY $sgpr0_sgpr1
|
|
%1:_(s64) = COPY $sgpr2_sgpr3
|
|
%2:_(s64) = G_FADD %0, %1
|
|
...
|
|
|
|
---
|
|
name: fptosi_f64_to_i32
|
|
legalized: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $sgpr0, $sgpr1
|
|
|
|
; GFX1150-LABEL: name: fptosi_f64_to_i32
|
|
; GFX1150: liveins: $sgpr0, $sgpr1
|
|
; GFX1150-NEXT: {{ $}}
|
|
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sgpr(s64) = COPY $sgpr0_sgpr1
|
|
; GFX1150-NEXT: [[COPY1:%[0-9]+]]:vgpr(s64) = COPY [[COPY]](s64)
|
|
; GFX1150-NEXT: [[FPTOSI:%[0-9]+]]:vgpr(s32) = G_FPTOSI [[COPY1]](s64)
|
|
; GFX1150-NEXT: [[AMDGPU_READANYLANE:%[0-9]+]]:sgpr(s32) = G_AMDGPU_READANYLANE [[FPTOSI]]
|
|
%0:_(s64) = COPY $sgpr0_sgpr1
|
|
%1:_(s32) = G_FPTOSI %0(s64)
|
|
...
|
|
|
|
---
|
|
name: fptoui_f16_to_u16
|
|
legalized: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $sgpr0
|
|
|
|
; GFX1150-LABEL: name: fptoui_f16_to_u16
|
|
; GFX1150: liveins: $sgpr0
|
|
; GFX1150-NEXT: {{ $}}
|
|
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
|
|
; GFX1150-NEXT: [[TRUNC:%[0-9]+]]:sgpr(s16) = G_TRUNC [[COPY]](s32)
|
|
; GFX1150-NEXT: [[COPY1:%[0-9]+]]:vgpr(s16) = COPY [[TRUNC]](s16)
|
|
; GFX1150-NEXT: [[FPTOUI:%[0-9]+]]:vgpr(s16) = G_FPTOUI [[COPY1]](s16)
|
|
; GFX1150-NEXT: [[ANYEXT:%[0-9]+]]:vgpr(s32) = G_ANYEXT [[FPTOUI]](s16)
|
|
; GFX1150-NEXT: [[AMDGPU_READANYLANE:%[0-9]+]]:sgpr(s32) = G_AMDGPU_READANYLANE [[ANYEXT]]
|
|
; GFX1150-NEXT: [[TRUNC1:%[0-9]+]]:sgpr(s16) = G_TRUNC [[AMDGPU_READANYLANE]](s32)
|
|
%1:_(s32) = COPY $sgpr0
|
|
%0:_(s16) = G_TRUNC %1(s32)
|
|
%2:_(s16) = G_FPTOUI %0(s16)
|
|
...
|
|
|
|
---
|
|
name: fptosi_sat_f64_to_i32
|
|
legalized: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $sgpr0, $sgpr1
|
|
|
|
; GFX1150-LABEL: name: fptosi_sat_f64_to_i32
|
|
; GFX1150: liveins: $sgpr0, $sgpr1
|
|
; GFX1150-NEXT: {{ $}}
|
|
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sgpr(s64) = COPY $sgpr0_sgpr1
|
|
; GFX1150-NEXT: [[COPY1:%[0-9]+]]:vgpr(s64) = COPY [[COPY]](s64)
|
|
; GFX1150-NEXT: [[FPTOSI_SAT:%[0-9]+]]:vgpr(s32) = G_FPTOSI_SAT [[COPY1]](s64)
|
|
; GFX1150-NEXT: [[AMDGPU_READANYLANE:%[0-9]+]]:sgpr(s32) = G_AMDGPU_READANYLANE [[FPTOSI_SAT]]
|
|
%0:_(s64) = COPY $sgpr0_sgpr1
|
|
%1:_(s32) = G_FPTOSI_SAT %0(s64)
|
|
...
|
|
|
|
---
|
|
name: fptoui_sat_f16_to_u16
|
|
legalized: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $sgpr0
|
|
|
|
; GFX1150-LABEL: name: fptoui_sat_f16_to_u16
|
|
; GFX1150: liveins: $sgpr0
|
|
; GFX1150-NEXT: {{ $}}
|
|
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
|
|
; GFX1150-NEXT: [[TRUNC:%[0-9]+]]:sgpr(s16) = G_TRUNC [[COPY]](s32)
|
|
; GFX1150-NEXT: [[COPY1:%[0-9]+]]:vgpr(s16) = COPY [[TRUNC]](s16)
|
|
; GFX1150-NEXT: [[FPTOUI_SAT:%[0-9]+]]:vgpr(s16) = G_FPTOUI_SAT [[COPY1]](s16)
|
|
; GFX1150-NEXT: [[ANYEXT:%[0-9]+]]:vgpr(s32) = G_ANYEXT [[FPTOUI_SAT]](s16)
|
|
; GFX1150-NEXT: [[AMDGPU_READANYLANE:%[0-9]+]]:sgpr(s32) = G_AMDGPU_READANYLANE [[ANYEXT]]
|
|
; GFX1150-NEXT: [[TRUNC1:%[0-9]+]]:sgpr(s16) = G_TRUNC [[AMDGPU_READANYLANE]](s32)
|
|
%1:_(s32) = COPY $sgpr0
|
|
%0:_(s16) = G_TRUNC %1(s32)
|
|
%2:_(s16) = G_FPTOUI_SAT %0(s16)
|
|
...
|
|
|
|
---
|
|
name: sitofp_i32_to_f64
|
|
legalized: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $sgpr0
|
|
|
|
; GFX1150-LABEL: name: sitofp_i32_to_f64
|
|
; GFX1150: liveins: $sgpr0
|
|
; GFX1150-NEXT: {{ $}}
|
|
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
|
|
; GFX1150-NEXT: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32)
|
|
; GFX1150-NEXT: [[SITOFP:%[0-9]+]]:vgpr(s64) = G_SITOFP [[COPY1]](s32)
|
|
; GFX1150-NEXT: [[UV:%[0-9]+]]:vgpr(s32), [[UV1:%[0-9]+]]:vgpr(s32) = G_UNMERGE_VALUES [[SITOFP]](s64)
|
|
; GFX1150-NEXT: [[AMDGPU_READANYLANE:%[0-9]+]]:sgpr(s32) = G_AMDGPU_READANYLANE [[UV]]
|
|
; GFX1150-NEXT: [[AMDGPU_READANYLANE1:%[0-9]+]]:sgpr(s32) = G_AMDGPU_READANYLANE [[UV1]]
|
|
; GFX1150-NEXT: [[MV:%[0-9]+]]:sgpr(s64) = G_MERGE_VALUES [[AMDGPU_READANYLANE]](s32), [[AMDGPU_READANYLANE1]](s32)
|
|
%0:_(s32) = COPY $sgpr0
|
|
%1:_(s64) = G_SITOFP %0(s32)
|
|
...
|
|
|
|
---
|
|
name: uitofp_u16_to_f16
|
|
legalized: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $sgpr0
|
|
|
|
; GFX1150-LABEL: name: uitofp_u16_to_f16
|
|
; GFX1150: liveins: $sgpr0
|
|
; GFX1150-NEXT: {{ $}}
|
|
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
|
|
; GFX1150-NEXT: [[TRUNC:%[0-9]+]]:sgpr(s16) = G_TRUNC [[COPY]](s32)
|
|
; GFX1150-NEXT: [[COPY1:%[0-9]+]]:vgpr(s16) = COPY [[TRUNC]](s16)
|
|
; GFX1150-NEXT: [[UITOFP:%[0-9]+]]:vgpr(s16) = G_UITOFP [[COPY1]](s16)
|
|
; GFX1150-NEXT: [[ANYEXT:%[0-9]+]]:vgpr(s32) = G_ANYEXT [[UITOFP]](s16)
|
|
; GFX1150-NEXT: [[AMDGPU_READANYLANE:%[0-9]+]]:sgpr(s32) = G_AMDGPU_READANYLANE [[ANYEXT]]
|
|
; GFX1150-NEXT: [[TRUNC1:%[0-9]+]]:sgpr(s16) = G_TRUNC [[AMDGPU_READANYLANE]](s32)
|
|
%1:_(s32) = COPY $sgpr0
|
|
%0:_(s16) = G_TRUNC %1(s32)
|
|
%2:_(s16) = G_UITOFP %0(s16)
|
|
...
|
|
|
|
---
|
|
name: fptrunc_f64_to_f32
|
|
legalized: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $sgpr0_sgpr1
|
|
|
|
; GFX1150-LABEL: name: fptrunc_f64_to_f32
|
|
; GFX1150: liveins: $sgpr0_sgpr1
|
|
; GFX1150-NEXT: {{ $}}
|
|
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sgpr(s64) = COPY $sgpr0_sgpr1
|
|
; GFX1150-NEXT: [[COPY1:%[0-9]+]]:vgpr(s64) = COPY [[COPY]](s64)
|
|
; GFX1150-NEXT: [[FPTRUNC:%[0-9]+]]:vgpr(s32) = G_FPTRUNC [[COPY1]](s64)
|
|
; GFX1150-NEXT: [[AMDGPU_READANYLANE:%[0-9]+]]:sgpr(s32) = G_AMDGPU_READANYLANE [[FPTRUNC]]
|
|
%0:_(s64) = COPY $sgpr0_sgpr1
|
|
%1:_(s32) = G_FPTRUNC %0(s64)
|
|
...
|
|
|
|
---
|
|
name: fpext_f32_to_f64
|
|
legalized: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $sgpr0
|
|
|
|
; GFX1150-LABEL: name: fpext_f32_to_f64
|
|
; GFX1150: liveins: $sgpr0
|
|
; GFX1150-NEXT: {{ $}}
|
|
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
|
|
; GFX1150-NEXT: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32)
|
|
; GFX1150-NEXT: [[FPEXT:%[0-9]+]]:vgpr(s64) = G_FPEXT [[COPY1]](s32)
|
|
; GFX1150-NEXT: [[UV:%[0-9]+]]:vgpr(s32), [[UV1:%[0-9]+]]:vgpr(s32) = G_UNMERGE_VALUES [[FPEXT]](s64)
|
|
; GFX1150-NEXT: [[AMDGPU_READANYLANE:%[0-9]+]]:sgpr(s32) = G_AMDGPU_READANYLANE [[UV]]
|
|
; GFX1150-NEXT: [[AMDGPU_READANYLANE1:%[0-9]+]]:sgpr(s32) = G_AMDGPU_READANYLANE [[UV1]]
|
|
; GFX1150-NEXT: [[MV:%[0-9]+]]:sgpr(s64) = G_MERGE_VALUES [[AMDGPU_READANYLANE]](s32), [[AMDGPU_READANYLANE1]](s32)
|
|
%0:_(s32) = COPY $sgpr0
|
|
%1:_(s64) = G_FPEXT %0(s32)
|
|
|
|
...
|