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
127 lines
3.9 KiB
YAML
127 lines
3.9 KiB
YAML
# RUN: llc -run-pass=machine-combiner -mtriple=aarch64-unknown-linux-gnu %s -o - | FileCheck %s
|
|
|
|
# fadd without the reassoc flags can be reassociate only when unsafe fp math is
|
|
# enabled.
|
|
# CHECK-LABEL: name: fadd_no_reassoc
|
|
# CHECK: [[ADD1:%[0-9]+]]:fpr32 = FADDSrr %0, %1, implicit $fpcr
|
|
# CHECK: [[ADD2:%[0-9]+]]:fpr32 = FADDSrr killed [[ADD1]], %2, implicit $fpcr
|
|
# CHECK: [[ADD3:%[0-9]+]]:fpr32 = FADDSrr killed [[ADD2]], %3, implicit $fpcr
|
|
---
|
|
name: fadd_no_reassoc
|
|
alignment: 4
|
|
tracksRegLiveness: true
|
|
registers:
|
|
- { id: 0, class: fpr32 }
|
|
- { id: 1, class: fpr32 }
|
|
- { id: 2, class: fpr32 }
|
|
- { id: 3, class: fpr32 }
|
|
- { id: 4, class: fpr32 }
|
|
- { id: 5, class: fpr32 }
|
|
- { id: 6, class: fpr32 }
|
|
liveins:
|
|
- { reg: '$s0', virtual-reg: '%0' }
|
|
- { reg: '$s1', virtual-reg: '%1' }
|
|
- { reg: '$s2', virtual-reg: '%2' }
|
|
- { reg: '$s3', virtual-reg: '%3' }
|
|
frameInfo:
|
|
maxAlignment: 1
|
|
maxCallFrameSize: 0
|
|
machineFunctionInfo: {}
|
|
body: |
|
|
bb.0.entry:
|
|
liveins: $s0, $s1, $s2, $s3
|
|
|
|
%3:fpr32 = COPY $s3
|
|
%2:fpr32 = COPY $s2
|
|
%1:fpr32 = COPY $s1
|
|
%0:fpr32 = COPY $s0
|
|
%4:fpr32 = FADDSrr %0, %1, implicit $fpcr
|
|
%5:fpr32 = FADDSrr killed %4, %2, implicit $fpcr
|
|
%6:fpr32 = FADDSrr killed %5, %3, implicit $fpcr
|
|
$s0 = COPY %6
|
|
RET_ReallyLR implicit $s0
|
|
|
|
|
|
# FIXME: We should be able to reassociate without unsafe fp math, but currently
|
|
# the reassoc flag is ignored.
|
|
# CHECK-LABEL: name: fadd_reassoc
|
|
# CHECK: [[ADD1:%[0-9]+]]:fpr32 = reassoc FADDSrr %0, %1, implicit $fpcr
|
|
# CHECK: [[ADD2:%[0-9]+]]:fpr32 = reassoc FADDSrr killed [[ADD1]], %2, implicit $fpcr
|
|
# CHECK: [[ADD3:%[0-9]+]]:fpr32 = reassoc FADDSrr killed [[ADD2]], %3, implicit $fpcr
|
|
|
|
---
|
|
name: fadd_reassoc
|
|
alignment: 4
|
|
tracksRegLiveness: true
|
|
registers:
|
|
- { id: 0, class: fpr32 }
|
|
- { id: 1, class: fpr32 }
|
|
- { id: 2, class: fpr32 }
|
|
- { id: 3, class: fpr32 }
|
|
- { id: 4, class: fpr32 }
|
|
- { id: 5, class: fpr32 }
|
|
- { id: 6, class: fpr32 }
|
|
liveins:
|
|
- { reg: '$s0', virtual-reg: '%0' }
|
|
- { reg: '$s1', virtual-reg: '%1' }
|
|
- { reg: '$s2', virtual-reg: '%2' }
|
|
- { reg: '$s3', virtual-reg: '%3' }
|
|
frameInfo:
|
|
maxAlignment: 1
|
|
maxCallFrameSize: 0
|
|
machineFunctionInfo: {}
|
|
body: |
|
|
bb.0.entry:
|
|
liveins: $s0, $s1, $s2, $s3
|
|
|
|
%3:fpr32 = COPY $s3
|
|
%2:fpr32 = COPY $s2
|
|
%1:fpr32 = COPY $s1
|
|
%0:fpr32 = COPY $s0
|
|
%4:fpr32 = reassoc FADDSrr %0, %1, implicit $fpcr
|
|
%5:fpr32 = reassoc FADDSrr killed %4, %2, implicit $fpcr
|
|
%6:fpr32 = reassoc FADDSrr killed %5, %3, implicit $fpcr
|
|
$s0 = COPY %6
|
|
RET_ReallyLR implicit $s0
|
|
|
|
|
|
# Check that flags on the instructions are preserved after reassociation.
|
|
# CHECK-LABEL: name: fadd_flags
|
|
# CHECK: [[ADD1:%[0-9]+]]:fpr32 = nnan ninf nsz FADDSrr %0, %1, implicit $fpcr
|
|
# CHECK: [[ADD2:%[0-9]+]]:fpr32 = nnan nsz FADDSrr killed [[ADD1]], %2, implicit $fpcr
|
|
# CHECK: [[ADD3:%[0-9]+]]:fpr32 = ninf nsz FADDSrr killed [[ADD2]], %3, implicit $fpcr
|
|
---
|
|
name: fadd_flags
|
|
alignment: 4
|
|
tracksRegLiveness: true
|
|
registers:
|
|
- { id: 0, class: fpr32 }
|
|
- { id: 1, class: fpr32 }
|
|
- { id: 2, class: fpr32 }
|
|
- { id: 3, class: fpr32 }
|
|
- { id: 4, class: fpr32 }
|
|
- { id: 5, class: fpr32 }
|
|
- { id: 6, class: fpr32 }
|
|
liveins:
|
|
- { reg: '$s0', virtual-reg: '%0' }
|
|
- { reg: '$s1', virtual-reg: '%1' }
|
|
- { reg: '$s2', virtual-reg: '%2' }
|
|
- { reg: '$s3', virtual-reg: '%3' }
|
|
frameInfo:
|
|
maxAlignment: 1
|
|
maxCallFrameSize: 0
|
|
machineFunctionInfo: {}
|
|
body: |
|
|
bb.0.entry:
|
|
liveins: $s0, $s1, $s2, $s3
|
|
|
|
%3:fpr32 = COPY $s3
|
|
%2:fpr32 = COPY $s2
|
|
%1:fpr32 = COPY $s1
|
|
%0:fpr32 = COPY $s0
|
|
%4:fpr32 = nsz nnan ninf FADDSrr %0, %1, implicit $fpcr
|
|
%5:fpr32 = nsz nnan FADDSrr killed %4, %2, implicit $fpcr
|
|
%6:fpr32 = nsz ninf FADDSrr killed %5, %3, implicit $fpcr
|
|
$s0 = COPY %6
|
|
RET_ReallyLR implicit $s0
|