Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/X86/GlobalISel/select-freeze.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

78 lines
2.0 KiB
YAML

# RUN: llc -mtriple=x86_64-linux-gnu -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
---
name: select_freeze_scalar_s32
legalized: true
regBankSelected: true
registers:
- { id: 0, class: gpr, preferred-register: '', flags: [ ] }
- { id: 1, class: gpr, preferred-register: '', flags: [ ] }
liveins:
fixedStack:
stack:
constants:
body: |
bb.0:
liveins: $edi
; CHECK-LABEL: name: select_freeze_scalar_s32
; CHECK: [[COPY:%[0-9]+]]:gr32 = COPY $edi
; CHECK-NOT: G_FREEZE
; CHECK-NEXT: $eax = COPY [[COPY]]
; CHECK-NEXT: RET 0, implicit $eax
%0:gpr(s32) = COPY $edi
%1:gpr(s32) = G_FREEZE %0
$eax = COPY %1(s32)
RET 0, implicit $eax
...
---
name: select_freeze_scalar_s64
legalized: true
regBankSelected: true
registers:
- { id: 0, class: gpr, preferred-register: '', flags: [ ] }
- { id: 1, class: gpr, preferred-register: '', flags: [ ] }
liveins:
fixedStack:
stack:
constants:
body: |
bb.0:
liveins: $rdi
; CHECK-LABEL: name: select_freeze_scalar_s64
; CHECK: [[COPY:%[0-9]+]]:gr64 = COPY $rdi
; CHECK-NOT: G_FREEZE
; CHECK-NEXT: $rax = COPY [[COPY]]
; CHECK-NEXT: RET 0, implicit $rax
%0:gpr(s64) = COPY $rdi
%1:gpr(s64) = G_FREEZE %0
$rax = COPY %1(s64)
RET 0, implicit $rax
...
---
name: select_freeze_vec128
legalized: true
regBankSelected: true
registers:
- { id: 0, class: vecr, preferred-register: '', flags: [ ] }
- { id: 1, class: vecr, preferred-register: '', flags: [ ] }
body: |
bb.0:
liveins: $xmm0
; CHECK-LABEL: name: select_freeze_vec128
; CHECK: [[COPY:%[0-9]+]]:vr128 = COPY $xmm0
; CHECK-NOT: G_FREEZE
; CHECK-NEXT: $xmm1 = COPY [[COPY]]
; CHECK-NEXT: RET 0, implicit $xmm1
%0:vecr(<4 x s32>) = COPY $xmm0
%1:vecr(<4 x s32>) = G_FREEZE %0
$xmm1 = COPY %1(<4 x s32>)
RET 0, implicit $xmm1
...