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
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
# RUN: llc -mtriple=hexagon -run-pass tfr-cleanup -o - %s | FileCheck %s
|
|
|
|
# Test coverage for HexagonTfrCleanup: exercise the 64-bit register
|
|
# immediate rewrite paths including the A2_combineii case and the
|
|
# A2_tfrpi case.
|
|
|
|
--- |
|
|
define void @test_double_imm() { ret void }
|
|
define void @test_combine_imm() { ret void }
|
|
define void @test_self_copy() { ret void }
|
|
...
|
|
|
|
---
|
|
# Test: 64-bit register copy rewritten to A2_tfrpi when source holds
|
|
# a small immediate (fits in int8).
|
|
# CHECK-LABEL: name: test_double_imm
|
|
# CHECK: A2_tfrpi
|
|
name: test_double_imm
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
$r0 = A2_tfrsi 3
|
|
$r1 = A2_tfrsi 0
|
|
$d1 = A2_tfrp $d0
|
|
...
|
|
|
|
---
|
|
# Test: 64-bit register copy rewritten to A2_combineii when the source
|
|
# value has both halves fitting in int8 but the full value does not.
|
|
# CHECK-LABEL: name: test_combine_imm
|
|
# CHECK: A2_combineii
|
|
name: test_combine_imm
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
$r0 = A2_tfrsi 5
|
|
$r1 = A2_tfrsi 7
|
|
$d1 = A2_tfrp $d0
|
|
...
|
|
|
|
---
|
|
# Test: eraseIfRedundant - self-assignment A2_tfr should be removed.
|
|
# CHECK-LABEL: name: test_self_copy
|
|
# CHECK-NOT: A2_tfr $r0, $r0
|
|
name: test_self_copy
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $r0
|
|
$r0 = A2_tfr $r0
|
|
J2_jumpr $r31, implicit-def dead $pc
|
|
...
|