Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-scalar-float-sop1.mir
T
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

304 lines
8.3 KiB
YAML

# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -mtriple=amdgcn -mcpu=gfx1150 -run-pass=instruction-select -verify-machineinstrs -o - %s | FileCheck -check-prefix=GFX1150 %s
# RUN: llc -mtriple=amdgcn -mcpu=gfx1200 -run-pass=instruction-select -verify-machineinstrs -o - %s | FileCheck -check-prefix=GFX1150 %s
---
name: sitofp_i32_to_f32
legalized: true
regBankSelected: true
body: |
bb.0:
liveins: $sgpr0
; GFX1150-LABEL: name: sitofp_i32_to_f32
; GFX1150: liveins: $sgpr0
; GFX1150-NEXT: {{ $}}
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
; GFX1150-NEXT: [[S_CVT_F32_I32_:%[0-9]+]]:sreg_32 = S_CVT_F32_I32 [[COPY]], implicit $mode
; GFX1150-NEXT: $sgpr0 = COPY [[S_CVT_F32_I32_]]
%0:sgpr(s32) = COPY $sgpr0
%1:sgpr(s32) = G_SITOFP %0(s32)
$sgpr0 = COPY %1(s32)
...
---
name: uitofp_u32_to_f32
legalized: true
regBankSelected: true
body: |
bb.0:
liveins: $sgpr0
; GFX1150-LABEL: name: uitofp_u32_to_f32
; GFX1150: liveins: $sgpr0
; GFX1150-NEXT: {{ $}}
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
; GFX1150-NEXT: [[S_CVT_F32_U32_:%[0-9]+]]:sreg_32 = S_CVT_F32_U32 [[COPY]], implicit $mode
; GFX1150-NEXT: $sgpr0 = COPY [[S_CVT_F32_U32_]]
%0:sgpr(s32) = COPY $sgpr0
%1:sgpr(s32) = G_UITOFP %0(s32)
$sgpr0 = COPY %1(s32)
...
---
name: fptosi_f32_to_i32
legalized: true
regBankSelected: true
body: |
bb.0:
liveins: $sgpr0
; GFX1150-LABEL: name: fptosi_f32_to_i32
; GFX1150: liveins: $sgpr0
; GFX1150-NEXT: {{ $}}
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
; GFX1150-NEXT: %1:sreg_32 = nofpexcept S_CVT_I32_F32 [[COPY]], implicit $mode
; GFX1150-NEXT: $sgpr0 = COPY %1
%0:sgpr(s32) = COPY $sgpr0
%1:sgpr(s32) = G_FPTOSI %0(s32)
$sgpr0 = COPY %1(s32)
...
---
name: fptoui_f32_to_u32
legalized: true
regBankSelected: true
body: |
bb.0:
liveins: $sgpr0
; GFX1150-LABEL: name: fptoui_f32_to_u32
; GFX1150: liveins: $sgpr0
; GFX1150-NEXT: {{ $}}
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
; GFX1150-NEXT: %1:sreg_32 = nofpexcept S_CVT_U32_F32 [[COPY]], implicit $mode
; GFX1150-NEXT: $sgpr0 = COPY %1
%0:sgpr(s32) = COPY $sgpr0
%1:sgpr(s32) = G_FPTOUI %0(s32)
$sgpr0 = COPY %1(s32)
...
---
name: fpext_f16_to_f32
legalized: true
regBankSelected: true
body: |
bb.0:
liveins: $sgpr0
; GFX1150-LABEL: name: fpext_f16_to_f32
; GFX1150: liveins: $sgpr0
; GFX1150-NEXT: {{ $}}
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
; GFX1150-NEXT: %2:sreg_32 = nofpexcept S_CVT_F32_F16 [[COPY]], implicit $mode
; GFX1150-NEXT: $sgpr0 = COPY %2
%0:sgpr(s32) = COPY $sgpr0
%1:sgpr(s16) = G_TRUNC %0(s32)
%2:sgpr(s32) = G_FPEXT %1(s16)
$sgpr0 = COPY %2(s32)
...
---
name: fpext_hif16_to_32
legalized: true
regBankSelected: true
body: |
bb.0:
liveins: $sgpr0
; GFX1150-LABEL: name: fpext_hif16_to_32
; GFX1150: liveins: $sgpr0
; GFX1150-NEXT: {{ $}}
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
; GFX1150-NEXT: [[S_CVT_HI_F32_F16_:%[0-9]+]]:sreg_32 = S_CVT_HI_F32_F16 [[COPY]], implicit $mode
; GFX1150-NEXT: $sgpr0 = COPY [[S_CVT_HI_F32_F16_]]
%0:sgpr(<2 x s16>) = COPY $sgpr0
%2:sgpr(s32) = G_BITCAST %0(<2 x s16>)
%3:sgpr(s32) = G_CONSTANT i32 16
%4:sgpr(s32) = G_LSHR %2, %3(s32)
%5:sgpr(s16) = G_TRUNC %4(s32)
%6:sgpr(s32) = G_FPEXT %5(s16)
$sgpr0 = COPY %6(s32)
...
---
name: fptrunc_f32_to_f16
legalized: true
regBankSelected: true
body: |
bb.0:
liveins: $sgpr0
; GFX1150-LABEL: name: fptrunc_f32_to_f16
; GFX1150: liveins: $sgpr0
; GFX1150-NEXT: {{ $}}
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
; GFX1150-NEXT: %1:sreg_32 = nofpexcept S_CVT_F16_F32 [[COPY]], implicit $mode
; GFX1150-NEXT: $sgpr0 = COPY %1
%0:sgpr(s32) = COPY $sgpr0
%1:sgpr(s16) = G_FPTRUNC %0(s32)
%2:sgpr(s32) = G_ANYEXT %1(s16)
$sgpr0 = COPY %2(s32)
...
---
name: fceil_f32
legalized: true
regBankSelected: true
body: |
bb.0:
liveins: $sgpr0
; GFX1150-LABEL: name: fceil_f32
; GFX1150: liveins: $sgpr0
; GFX1150-NEXT: {{ $}}
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
; GFX1150-NEXT: %1:sreg_32 = nofpexcept S_CEIL_F32 [[COPY]], implicit $mode
; GFX1150-NEXT: $sgpr0 = COPY %1
%0:sgpr(s32) = COPY $sgpr0
%1:sgpr(s32) = G_FCEIL %0
$sgpr0 = COPY %1(s32)
...
---
name: ffloor_f32
legalized: true
regBankSelected: true
body: |
bb.0:
liveins: $sgpr0
; GFX1150-LABEL: name: ffloor_f32
; GFX1150: liveins: $sgpr0
; GFX1150-NEXT: {{ $}}
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
; GFX1150-NEXT: %1:sreg_32 = nofpexcept S_FLOOR_F32 [[COPY]], implicit $mode
; GFX1150-NEXT: $sgpr0 = COPY %1
%0:sgpr(s32) = COPY $sgpr0
%1:sgpr(s32) = G_FFLOOR %0
$sgpr0 = COPY %1(s32)
...
---
name: ftrunc_f32
legalized: true
regBankSelected: true
body: |
bb.0:
liveins: $sgpr0
; GFX1150-LABEL: name: ftrunc_f32
; GFX1150: liveins: $sgpr0
; GFX1150-NEXT: {{ $}}
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
; GFX1150-NEXT: %1:sreg_32 = nofpexcept S_TRUNC_F32 [[COPY]], implicit $mode
; GFX1150-NEXT: $sgpr0 = COPY %1
%0:sgpr(s32) = COPY $sgpr0
%1:sgpr(s32) = G_INTRINSIC_TRUNC %0
$sgpr0 = COPY %1(s32)
...
---
name: frint_f32
legalized: true
regBankSelected: true
body: |
bb.0:
liveins: $sgpr0
; GFX1150-LABEL: name: frint_f32
; GFX1150: liveins: $sgpr0
; GFX1150-NEXT: {{ $}}
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
; GFX1150-NEXT: %1:sreg_32 = nofpexcept S_RNDNE_F32 [[COPY]], implicit $mode
; GFX1150-NEXT: $sgpr0 = COPY %1
%0:sgpr(s32) = COPY $sgpr0
%1:sgpr(s32) = G_INTRINSIC_ROUNDEVEN %0
$sgpr0 = COPY %1(s32)
...
---
name: fceil_f16
legalized: true
regBankSelected: true
body: |
bb.0:
liveins: $sgpr0
; GFX1150-LABEL: name: fceil_f16
; GFX1150: liveins: $sgpr0
; GFX1150-NEXT: {{ $}}
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
; GFX1150-NEXT: %2:sreg_32 = nofpexcept S_CEIL_F16 [[COPY]], implicit $mode
; GFX1150-NEXT: $sgpr0 = COPY %2
%0:sgpr(s32) = COPY $sgpr0
%1:sgpr(s16) = G_TRUNC %0(s32)
%2:sgpr(s16) = G_FCEIL %1
%3:sgpr(s32) = G_ANYEXT %2(s16)
$sgpr0 = COPY %3(s32)
...
---
name: ffloor_f16
legalized: true
regBankSelected: true
body: |
bb.0:
liveins: $sgpr0
; GFX1150-LABEL: name: ffloor_f16
; GFX1150: liveins: $sgpr0
; GFX1150-NEXT: {{ $}}
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
; GFX1150-NEXT: %2:sreg_32 = nofpexcept S_FLOOR_F16 [[COPY]], implicit $mode
; GFX1150-NEXT: $sgpr0 = COPY %2
%0:sgpr(s32) = COPY $sgpr0
%1:sgpr(s16) = G_TRUNC %0(s32)
%2:sgpr(s16) = G_FFLOOR %1
%3:sgpr(s32) = G_ANYEXT %2(s16)
$sgpr0 = COPY %3(s32)
...
---
name: ftrunc_f16
legalized: true
regBankSelected: true
body: |
bb.0:
liveins: $sgpr0
; GFX1150-LABEL: name: ftrunc_f16
; GFX1150: liveins: $sgpr0
; GFX1150-NEXT: {{ $}}
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
; GFX1150-NEXT: %2:sreg_32 = nofpexcept S_TRUNC_F16 [[COPY]], implicit $mode
; GFX1150-NEXT: $sgpr0 = COPY %2
%0:sgpr(s32) = COPY $sgpr0
%1:sgpr(s16) = G_TRUNC %0(s32)
%2:sgpr(s16) = G_INTRINSIC_TRUNC %1
%3:sgpr(s32) = G_ANYEXT %2(s16)
$sgpr0 = COPY %3(s32)
...
---
name: frint_f16
legalized: true
regBankSelected: true
body: |
bb.0:
liveins: $sgpr0
; GFX1150-LABEL: name: frint_f16
; GFX1150: liveins: $sgpr0
; GFX1150-NEXT: {{ $}}
; GFX1150-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
; GFX1150-NEXT: %2:sreg_32 = nofpexcept S_RNDNE_F16 [[COPY]], implicit $mode
; GFX1150-NEXT: $sgpr0 = COPY %2
%0:sgpr(s32) = COPY $sgpr0
%1:sgpr(s16) = G_TRUNC %0(s32)
%2:sgpr(s16) = G_INTRINSIC_ROUNDEVEN %1
%3:sgpr(s32) = G_ANYEXT %2(s16)
$sgpr0 = COPY %3(s32)
...