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
136 lines
4.7 KiB
YAML
136 lines
4.7 KiB
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -mtriple=aarch64-unknown-unknown -run-pass=legalizer -mattr=+fullfp16 -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=FP16
|
|
# RUN: llc -mtriple=aarch64-unknown-unknown -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=NO-FP16
|
|
...
|
|
---
|
|
name: s16_legal_with_full_fp16
|
|
alignment: 4
|
|
body: |
|
|
bb.0:
|
|
liveins: $h0, $h1
|
|
; FP16-LABEL: name: s16_legal_with_full_fp16
|
|
; FP16: liveins: $h0, $h1
|
|
; FP16-NEXT: {{ $}}
|
|
; FP16-NEXT: %a:_(f16) = COPY $h0
|
|
; FP16-NEXT: %b:_(f16) = COPY $h1
|
|
; FP16-NEXT: %maxnum:_(f16) = G_FMAXNUM %a, %b
|
|
; FP16-NEXT: $h0 = COPY %maxnum(f16)
|
|
; FP16-NEXT: RET_ReallyLR implicit $h0
|
|
;
|
|
; NO-FP16-LABEL: name: s16_legal_with_full_fp16
|
|
; NO-FP16: liveins: $h0, $h1
|
|
; NO-FP16-NEXT: {{ $}}
|
|
; NO-FP16-NEXT: %a:_(f16) = COPY $h0
|
|
; NO-FP16-NEXT: %b:_(f16) = COPY $h1
|
|
; NO-FP16-NEXT: [[FPEXT:%[0-9]+]]:_(f32) = G_FPEXT %a(f16)
|
|
; NO-FP16-NEXT: [[FPEXT1:%[0-9]+]]:_(f32) = G_FPEXT %b(f16)
|
|
; NO-FP16-NEXT: [[FMAXNUM:%[0-9]+]]:_(f32) = G_FMAXNUM [[FPEXT]], [[FPEXT1]]
|
|
; NO-FP16-NEXT: %maxnum:_(f16) = G_FPTRUNC [[FMAXNUM]](f32)
|
|
; NO-FP16-NEXT: $h0 = COPY %maxnum(f16)
|
|
; NO-FP16-NEXT: RET_ReallyLR implicit $h0
|
|
%a:_(f16) = COPY $h0
|
|
%b:_(f16) = COPY $h1
|
|
%maxnum:_(f16) = G_FMAXNUM %a, %b
|
|
$h0 = COPY %maxnum(f16)
|
|
RET_ReallyLR implicit $h0
|
|
|
|
...
|
|
---
|
|
name: s32_legal
|
|
alignment: 4
|
|
body: |
|
|
bb.0:
|
|
liveins: $s0, $s1
|
|
; FP16-LABEL: name: s32_legal
|
|
; FP16: liveins: $s0, $s1
|
|
; FP16-NEXT: {{ $}}
|
|
; FP16-NEXT: %a:_(f32) = COPY $s0
|
|
; FP16-NEXT: %b:_(f32) = COPY $s1
|
|
; FP16-NEXT: %maxnum:_(f32) = G_FMAXNUM %a, %b
|
|
; FP16-NEXT: $s0 = COPY %maxnum(f32)
|
|
; FP16-NEXT: RET_ReallyLR implicit $s0
|
|
;
|
|
; NO-FP16-LABEL: name: s32_legal
|
|
; NO-FP16: liveins: $s0, $s1
|
|
; NO-FP16-NEXT: {{ $}}
|
|
; NO-FP16-NEXT: %a:_(f32) = COPY $s0
|
|
; NO-FP16-NEXT: %b:_(f32) = COPY $s1
|
|
; NO-FP16-NEXT: %maxnum:_(f32) = G_FMAXNUM %a, %b
|
|
; NO-FP16-NEXT: $s0 = COPY %maxnum(f32)
|
|
; NO-FP16-NEXT: RET_ReallyLR implicit $s0
|
|
%a:_(f32) = COPY $s0
|
|
%b:_(f32) = COPY $s1
|
|
%maxnum:_(f32) = G_FMAXNUM %a, %b
|
|
$s0 = COPY %maxnum(f32)
|
|
RET_ReallyLR implicit $s0
|
|
|
|
...
|
|
---
|
|
name: s64_legal
|
|
alignment: 4
|
|
body: |
|
|
bb.0:
|
|
liveins: $d0, $d1
|
|
; FP16-LABEL: name: s64_legal
|
|
; FP16: liveins: $d0, $d1
|
|
; FP16-NEXT: {{ $}}
|
|
; FP16-NEXT: %a:_(f64) = COPY $d0
|
|
; FP16-NEXT: %b:_(f64) = COPY $d1
|
|
; FP16-NEXT: %maxnum:_(f64) = G_FMAXNUM %a, %b
|
|
; FP16-NEXT: $d0 = COPY %maxnum(f64)
|
|
; FP16-NEXT: RET_ReallyLR implicit $d0
|
|
;
|
|
; NO-FP16-LABEL: name: s64_legal
|
|
; NO-FP16: liveins: $d0, $d1
|
|
; NO-FP16-NEXT: {{ $}}
|
|
; NO-FP16-NEXT: %a:_(f64) = COPY $d0
|
|
; NO-FP16-NEXT: %b:_(f64) = COPY $d1
|
|
; NO-FP16-NEXT: %maxnum:_(f64) = G_FMAXNUM %a, %b
|
|
; NO-FP16-NEXT: $d0 = COPY %maxnum(f64)
|
|
; NO-FP16-NEXT: RET_ReallyLR implicit $d0
|
|
%a:_(f64) = COPY $d0
|
|
%b:_(f64) = COPY $d1
|
|
%maxnum:_(f64) = G_FMAXNUM %a, %b
|
|
$d0 = COPY %maxnum(f64)
|
|
RET_ReallyLR implicit $d0
|
|
|
|
...
|
|
---
|
|
name: s128_libcall
|
|
alignment: 4
|
|
body: |
|
|
bb.0:
|
|
liveins: $q0, $q1
|
|
; FP16-LABEL: name: s128_libcall
|
|
; FP16: liveins: $q0, $q1
|
|
; FP16-NEXT: {{ $}}
|
|
; FP16-NEXT: %a:_(s128) = COPY $q0
|
|
; FP16-NEXT: %b:_(s128) = COPY $q1
|
|
; FP16-NEXT: ADJCALLSTACKDOWN 0, 0, implicit-def $sp, implicit $sp
|
|
; FP16-NEXT: $q0 = COPY %a(s128)
|
|
; FP16-NEXT: $q1 = COPY %b(s128)
|
|
; FP16-NEXT: BL &fmaxl, csr_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit $q0, implicit $q1, implicit-def $q0
|
|
; FP16-NEXT: ADJCALLSTACKUP 0, 0, implicit-def $sp, implicit $sp
|
|
; FP16-NEXT: %maxnum:_(s128) = COPY $q0
|
|
; FP16-NEXT: $q0 = COPY %maxnum(s128)
|
|
; FP16-NEXT: RET_ReallyLR implicit $q0
|
|
;
|
|
; NO-FP16-LABEL: name: s128_libcall
|
|
; NO-FP16: liveins: $q0, $q1
|
|
; NO-FP16-NEXT: {{ $}}
|
|
; NO-FP16-NEXT: %a:_(s128) = COPY $q0
|
|
; NO-FP16-NEXT: %b:_(s128) = COPY $q1
|
|
; NO-FP16-NEXT: ADJCALLSTACKDOWN 0, 0, implicit-def $sp, implicit $sp
|
|
; NO-FP16-NEXT: $q0 = COPY %a(s128)
|
|
; NO-FP16-NEXT: $q1 = COPY %b(s128)
|
|
; NO-FP16-NEXT: BL &fmaxl, csr_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit $q0, implicit $q1, implicit-def $q0
|
|
; NO-FP16-NEXT: ADJCALLSTACKUP 0, 0, implicit-def $sp, implicit $sp
|
|
; NO-FP16-NEXT: %maxnum:_(s128) = COPY $q0
|
|
; NO-FP16-NEXT: $q0 = COPY %maxnum(s128)
|
|
; NO-FP16-NEXT: RET_ReallyLR implicit $q0
|
|
%a:_(s128) = COPY $q0
|
|
%b:_(s128) = COPY $q1
|
|
%maxnum:_(s128) = G_FMAXNUM %a, %b
|
|
$q0 = COPY %maxnum(s128)
|
|
RET_ReallyLR implicit $q0
|