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
131 lines
3.8 KiB
YAML
131 lines
3.8 KiB
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -mtriple=aarch64-unknown-unknown -o - -verify-machineinstrs -run-pass=instruction-select %s | FileCheck %s
|
|
|
|
# PR36345
|
|
--- |
|
|
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
|
|
target triple = "aarch64"
|
|
|
|
; Function Attrs: noinline nounwind optnone
|
|
define void @fp16_to_gpr([2 x half], ptr %addr) {
|
|
ret void
|
|
}
|
|
|
|
define void @gpr_to_fp16() {
|
|
ret void
|
|
}
|
|
|
|
define void @gpr_to_fp16_physreg() {
|
|
ret void
|
|
}
|
|
...
|
|
---
|
|
name: fp16_to_gpr
|
|
alignment: 4
|
|
legalized: true
|
|
regBankSelected: true
|
|
tracksRegLiveness: true
|
|
registers:
|
|
- { id: 0, class: gpr }
|
|
- { id: 1, class: fpr }
|
|
- { id: 2, class: fpr }
|
|
- { id: 3, class: gpr }
|
|
- { id: 4, class: gpr }
|
|
- { id: 5, class: gpr }
|
|
- { id: 6, class: gpr }
|
|
- { id: 7, class: gpr }
|
|
- { id: 8, class: gpr }
|
|
- { id: 9, class: gpr }
|
|
- { id: 10, class: gpr }
|
|
- { id: 11, class: gpr }
|
|
- { id: 12, class: gpr }
|
|
body: |
|
|
bb.1 (%ir-block.1):
|
|
liveins: $h0, $h1, $x0
|
|
|
|
; CHECK-LABEL: name: fp16_to_gpr
|
|
; CHECK: liveins: $h0, $h1, $x0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: [[COPY:%[0-9]+]]:fpr16 = COPY $h0
|
|
; CHECK-NEXT: [[COPY1:%[0-9]+]]:fpr16 = COPY $h1
|
|
; CHECK-NEXT: [[DEF:%[0-9]+]]:gpr32 = IMPLICIT_DEF
|
|
; CHECK-NEXT: [[SUBREG_TO_REG:%[0-9]+]]:fpr32 = SUBREG_TO_REG [[COPY]], %subreg.hsub
|
|
; CHECK-NEXT: [[COPY2:%[0-9]+]]:gpr32 = COPY [[SUBREG_TO_REG]]
|
|
; CHECK-NEXT: [[BFMWri:%[0-9]+]]:gpr32 = BFMWri [[DEF]], [[COPY2]], 0, 15
|
|
; CHECK-NEXT: [[SUBREG_TO_REG1:%[0-9]+]]:fpr32 = SUBREG_TO_REG [[COPY1]], %subreg.hsub
|
|
; CHECK-NEXT: [[COPY3:%[0-9]+]]:gpr32 = COPY [[SUBREG_TO_REG1]]
|
|
; CHECK-NEXT: [[BFMWri1:%[0-9]+]]:gpr32 = BFMWri [[BFMWri]], [[COPY3]], 16, 15
|
|
; CHECK-NEXT: [[COPY4:%[0-9]+]]:gpr64sp = COPY $x0
|
|
; CHECK-NEXT: STRWui [[BFMWri1]], [[COPY4]], 0 :: (store (s32) into %ir.addr, align 2)
|
|
; CHECK-NEXT: RET_ReallyLR
|
|
%1:fpr(s16) = COPY $h0
|
|
%2:fpr(s16) = COPY $h1
|
|
%3:gpr(s32) = G_IMPLICIT_DEF
|
|
%11:gpr(s16) = COPY %1(s16)
|
|
%4:gpr(s32) = G_INSERT %3, %11(s16), 0
|
|
%12:gpr(s16) = COPY %2(s16)
|
|
%5:gpr(s32) = G_INSERT %4, %12(s16), 16
|
|
%0:gpr(s32) = COPY %5(s32)
|
|
%6:gpr(p0) = COPY $x0
|
|
G_STORE %0(s32), %6(p0) :: (store (s32) into %ir.addr, align 2)
|
|
RET_ReallyLR
|
|
|
|
...
|
|
|
|
---
|
|
name: gpr_to_fp16
|
|
alignment: 4
|
|
legalized: true
|
|
regBankSelected: true
|
|
tracksRegLiveness: true
|
|
registers:
|
|
- { id: 0, class: gpr }
|
|
- { id: 1, class: gpr }
|
|
- { id: 2, class: fpr }
|
|
body: |
|
|
bb.1 (%ir-block.0):
|
|
liveins: $w0
|
|
|
|
; CHECK-LABEL: name: gpr_to_fp16
|
|
; CHECK: liveins: $w0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: [[COPY:%[0-9]+]]:gpr32 = COPY $w0
|
|
; CHECK-NEXT: [[COPY1:%[0-9]+]]:fpr32 = COPY [[COPY]]
|
|
; CHECK-NEXT: [[COPY2:%[0-9]+]]:fpr16 = COPY [[COPY1]].hsub
|
|
; CHECK-NEXT: $h0 = COPY [[COPY2]]
|
|
; CHECK-NEXT: RET_ReallyLR implicit $h0
|
|
%0:gpr(s32) = COPY $w0
|
|
%1:gpr(s16) = G_TRUNC %0(s32)
|
|
%2:fpr(s16) = COPY %1(s16)
|
|
$h0 = COPY %2(s16)
|
|
RET_ReallyLR implicit $h0
|
|
|
|
...
|
|
---
|
|
name: gpr_to_fp16_physreg
|
|
alignment: 4
|
|
legalized: true
|
|
regBankSelected: true
|
|
tracksRegLiveness: true
|
|
registers:
|
|
- { id: 0, class: gpr }
|
|
- { id: 1, class: gpr }
|
|
body: |
|
|
bb.1 (%ir-block.0):
|
|
liveins: $w0
|
|
|
|
; CHECK-LABEL: name: gpr_to_fp16_physreg
|
|
; CHECK: liveins: $w0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: [[COPY:%[0-9]+]]:gpr32 = COPY $w0
|
|
; CHECK-NEXT: [[COPY1:%[0-9]+]]:fpr32 = COPY [[COPY]]
|
|
; CHECK-NEXT: [[COPY2:%[0-9]+]]:fpr16 = COPY [[COPY1]].hsub
|
|
; CHECK-NEXT: $h0 = COPY [[COPY2]]
|
|
; CHECK-NEXT: RET_ReallyLR implicit $h0
|
|
%0:gpr(s32) = COPY $w0
|
|
%1:gpr(s16) = G_TRUNC %0(s32)
|
|
$h0 = COPY %1(s16)
|
|
RET_ReallyLR implicit $h0
|
|
|
|
...
|