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
411 lines
9.6 KiB
YAML
411 lines
9.6 KiB
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -mtriple aarch64 -run-pass=aarch64-postlegalizer-combiner -verify-machineinstrs %s -o - | FileCheck %s
|
|
|
|
---
|
|
name: add
|
|
alignment: 4
|
|
legalized: true
|
|
liveins:
|
|
- { reg: '$w0' }
|
|
body: |
|
|
bb.1.entry:
|
|
liveins: $x0
|
|
|
|
; CHECK-LABEL: name: add
|
|
; CHECK: liveins: $x0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %res:_(s64) = G_CONSTANT i64 42
|
|
; CHECK-NEXT: $x0 = COPY %res(s64)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $x0
|
|
%a:_(s64) = G_CONSTANT i64 40
|
|
%b:_(s64) = G_CONSTANT i64 2
|
|
%res:_(s64) = G_ADD %a, %b
|
|
$x0 = COPY %res(s64)
|
|
RET_ReallyLR implicit $x0
|
|
|
|
...
|
|
---
|
|
name: sub
|
|
alignment: 4
|
|
legalized: true
|
|
liveins:
|
|
- { reg: '$w0' }
|
|
body: |
|
|
bb.1.entry:
|
|
liveins: $x0
|
|
|
|
; CHECK-LABEL: name: sub
|
|
; CHECK: liveins: $x0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %res:_(s64) = G_CONSTANT i64 38
|
|
; CHECK-NEXT: $x0 = COPY %res(s64)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $x0
|
|
%a:_(s64) = G_CONSTANT i64 40
|
|
%b:_(s64) = G_CONSTANT i64 2
|
|
%res:_(s64) = G_SUB %a, %b
|
|
$x0 = COPY %res(s64)
|
|
RET_ReallyLR implicit $x0
|
|
|
|
...
|
|
---
|
|
name: mul
|
|
alignment: 4
|
|
legalized: true
|
|
liveins:
|
|
- { reg: '$w0' }
|
|
body: |
|
|
bb.1.entry:
|
|
liveins: $x0
|
|
|
|
; CHECK-LABEL: name: mul
|
|
; CHECK: liveins: $x0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %res:_(s64) = G_CONSTANT i64 80
|
|
; CHECK-NEXT: $x0 = COPY %res(s64)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $x0
|
|
%a:_(s64) = G_CONSTANT i64 40
|
|
%b:_(s64) = G_CONSTANT i64 2
|
|
%res:_(s64) = G_MUL %a, %b
|
|
$x0 = COPY %res(s64)
|
|
RET_ReallyLR implicit $x0
|
|
|
|
...
|
|
---
|
|
name: and
|
|
alignment: 4
|
|
legalized: true
|
|
liveins:
|
|
- { reg: '$w0' }
|
|
body: |
|
|
bb.1.entry:
|
|
liveins: $x0
|
|
|
|
; CHECK-LABEL: name: and
|
|
; CHECK: liveins: $x0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %res:_(s64) = G_CONSTANT i64 0
|
|
; CHECK-NEXT: $x0 = COPY %res(s64)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $x0
|
|
%a:_(s64) = G_CONSTANT i64 40
|
|
%b:_(s64) = G_CONSTANT i64 2
|
|
%res:_(s64) = G_AND %a, %b
|
|
$x0 = COPY %res(s64)
|
|
RET_ReallyLR implicit $x0
|
|
|
|
...
|
|
---
|
|
name: or
|
|
alignment: 4
|
|
legalized: true
|
|
liveins:
|
|
- { reg: '$w0' }
|
|
body: |
|
|
bb.1.entry:
|
|
liveins: $x0
|
|
|
|
; CHECK-LABEL: name: or
|
|
; CHECK: liveins: $x0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %res:_(s64) = G_CONSTANT i64 62
|
|
; CHECK-NEXT: $x0 = COPY %res(s64)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $x0
|
|
%a:_(s64) = G_CONSTANT i64 42
|
|
%b:_(s64) = G_CONSTANT i64 22
|
|
%res:_(s64) = G_OR %a, %b
|
|
$x0 = COPY %res(s64)
|
|
RET_ReallyLR implicit $x0
|
|
|
|
...
|
|
---
|
|
name: xor
|
|
alignment: 4
|
|
legalized: true
|
|
liveins:
|
|
- { reg: '$w0' }
|
|
body: |
|
|
bb.1.entry:
|
|
liveins: $x0
|
|
|
|
; CHECK-LABEL: name: xor
|
|
; CHECK: liveins: $x0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %res:_(s64) = G_CONSTANT i64 12
|
|
; CHECK-NEXT: $x0 = COPY %res(s64)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $x0
|
|
%a:_(s64) = G_CONSTANT i64 8
|
|
%b:_(s64) = G_CONSTANT i64 4
|
|
%res:_(s64) = G_XOR %a, %b
|
|
$x0 = COPY %res(s64)
|
|
RET_ReallyLR implicit $x0
|
|
|
|
...
|
|
---
|
|
name: fadd
|
|
legalized: true
|
|
liveins:
|
|
- { reg: '$d0' }
|
|
body: |
|
|
bb.1.entry:
|
|
liveins: $d0
|
|
|
|
; CHECK-LABEL: name: fadd
|
|
; CHECK: liveins: $d0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %res:_(s64) = G_FCONSTANT double 4.200000e+01
|
|
; CHECK-NEXT: $d0 = COPY %res(s64)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $d0
|
|
%a:_(s64) = G_FCONSTANT double 40.0
|
|
%b:_(s64) = G_FCONSTANT double 2.0
|
|
%res:_(s64) = G_FADD %a, %b
|
|
$d0 = COPY %res(s64)
|
|
RET_ReallyLR implicit $d0
|
|
|
|
...
|
|
---
|
|
name: fsub
|
|
legalized: true
|
|
liveins:
|
|
- { reg: '$d0' }
|
|
body: |
|
|
bb.1.entry:
|
|
liveins: $d0
|
|
|
|
; CHECK-LABEL: name: fsub
|
|
; CHECK: liveins: $d0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %res:_(s64) = G_FCONSTANT double 3.800000e+01
|
|
; CHECK-NEXT: $d0 = COPY %res(s64)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $d0
|
|
%a:_(s64) = G_FCONSTANT double 40.0
|
|
%b:_(s64) = G_FCONSTANT double 2.0
|
|
%res:_(s64) = G_FSUB %a, %b
|
|
$d0 = COPY %res(s64)
|
|
RET_ReallyLR implicit $d0
|
|
|
|
...
|
|
---
|
|
name: fmul
|
|
legalized: true
|
|
liveins:
|
|
- { reg: '$d0' }
|
|
body: |
|
|
bb.1.entry:
|
|
liveins: $d0
|
|
|
|
; CHECK-LABEL: name: fmul
|
|
; CHECK: liveins: $d0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %res:_(s64) = G_FCONSTANT double 8.000000e+01
|
|
; CHECK-NEXT: $d0 = COPY %res(s64)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $d0
|
|
%a:_(s64) = G_FCONSTANT double 40.0
|
|
%b:_(s64) = G_FCONSTANT double 2.0
|
|
%res:_(s64) = G_FMUL %a, %b
|
|
$d0 = COPY %res(s64)
|
|
RET_ReallyLR implicit $d0
|
|
|
|
...
|
|
---
|
|
name: fdiv
|
|
legalized: true
|
|
liveins:
|
|
- { reg: '$d0' }
|
|
body: |
|
|
bb.1.entry:
|
|
liveins: $d0
|
|
|
|
; CHECK-LABEL: name: fdiv
|
|
; CHECK: liveins: $d0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %res:_(s64) = G_FCONSTANT double 2.000000e+01
|
|
; CHECK-NEXT: $d0 = COPY %res(s64)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $d0
|
|
%a:_(s64) = G_FCONSTANT double 40.0
|
|
%b:_(s64) = G_FCONSTANT double 2.0
|
|
%res:_(s64) = G_FDIV %a, %b
|
|
$d0 = COPY %res(s64)
|
|
RET_ReallyLR implicit $d0
|
|
|
|
...
|
|
---
|
|
name: fminimumnum
|
|
legalized: true
|
|
liveins:
|
|
- { reg: '$d0' }
|
|
body: |
|
|
bb.1.entry:
|
|
liveins: $d0
|
|
|
|
; CHECK-LABEL: name: fminimumnum
|
|
; CHECK: liveins: $d0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %a:_(s64) = G_FCONSTANT double 2.000000e+00
|
|
; CHECK-NEXT: $d0 = COPY %a(s64)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $d0
|
|
%a:_(s64) = G_FCONSTANT double 2.0
|
|
%b:_(s64) = G_FCONSTANT double 5.0
|
|
%res:_(s64) = G_FMINIMUMNUM %a, %b
|
|
$d0 = COPY %res(s64)
|
|
RET_ReallyLR implicit $d0
|
|
|
|
...
|
|
---
|
|
name: fmaximumnum
|
|
legalized: true
|
|
liveins:
|
|
- { reg: '$d0' }
|
|
body: |
|
|
bb.1.entry:
|
|
liveins: $d0
|
|
|
|
; CHECK-LABEL: name: fmaximumnum
|
|
; CHECK: liveins: $d0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %b:_(s64) = G_FCONSTANT double 5.000000e+00
|
|
; CHECK-NEXT: $d0 = COPY %b(s64)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $d0
|
|
%a:_(s64) = G_FCONSTANT double 2.0
|
|
%b:_(s64) = G_FCONSTANT double 5.0
|
|
%res:_(s64) = G_FMAXIMUMNUM %a, %b
|
|
$d0 = COPY %res(s64)
|
|
RET_ReallyLR implicit $d0
|
|
|
|
...
|
|
---
|
|
name: fcopysign
|
|
legalized: true
|
|
liveins:
|
|
- { reg: '$d0' }
|
|
body: |
|
|
bb.1.entry:
|
|
liveins: $d0
|
|
|
|
; fcopysign(3.0, -1.0) = -3.0
|
|
; CHECK-LABEL: name: fcopysign
|
|
; CHECK: liveins: $d0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %res:_(s64) = G_FCONSTANT double -3.000000e+00
|
|
; CHECK-NEXT: $d0 = COPY %res(s64)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $d0
|
|
%a:_(s64) = G_FCONSTANT double 3.0
|
|
%b:_(s64) = G_FCONSTANT double -1.0
|
|
%res:_(s64) = G_FCOPYSIGN %a, %b
|
|
$d0 = COPY %res(s64)
|
|
RET_ReallyLR implicit $d0
|
|
|
|
...
|
|
---
|
|
name: fminnum
|
|
legalized: true
|
|
liveins:
|
|
- { reg: '$d0' }
|
|
body: |
|
|
bb.1.entry:
|
|
liveins: $d0
|
|
|
|
; fminnum(2.0, 5.0) = 2.0
|
|
; CHECK-LABEL: name: fminnum
|
|
; CHECK: liveins: $d0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %a:_(s64) = G_FCONSTANT double 2.000000e+00
|
|
; CHECK-NEXT: $d0 = COPY %a(s64)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $d0
|
|
%a:_(s64) = G_FCONSTANT double 2.0
|
|
%b:_(s64) = G_FCONSTANT double 5.0
|
|
%res:_(s64) = G_FMINNUM %a, %b
|
|
$d0 = COPY %res(s64)
|
|
RET_ReallyLR implicit $d0
|
|
|
|
...
|
|
---
|
|
name: fmaxnum
|
|
legalized: true
|
|
liveins:
|
|
- { reg: '$d0' }
|
|
body: |
|
|
bb.1.entry:
|
|
liveins: $d0
|
|
|
|
; fmaxnum(2.0, 5.0) = 5.0
|
|
; CHECK-LABEL: name: fmaxnum
|
|
; CHECK: liveins: $d0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %b:_(s64) = G_FCONSTANT double 5.000000e+00
|
|
; CHECK-NEXT: $d0 = COPY %b(s64)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $d0
|
|
%a:_(s64) = G_FCONSTANT double 2.0
|
|
%b:_(s64) = G_FCONSTANT double 5.0
|
|
%res:_(s64) = G_FMAXNUM %a, %b
|
|
$d0 = COPY %res(s64)
|
|
RET_ReallyLR implicit $d0
|
|
|
|
...
|
|
---
|
|
name: fminimum
|
|
legalized: true
|
|
liveins:
|
|
- { reg: '$d0' }
|
|
body: |
|
|
bb.1.entry:
|
|
liveins: $d0
|
|
|
|
; fminimum(2.0, 5.0) = 2.0
|
|
; CHECK-LABEL: name: fminimum
|
|
; CHECK: liveins: $d0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %a:_(s64) = G_FCONSTANT double 2.000000e+00
|
|
; CHECK-NEXT: $d0 = COPY %a(s64)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $d0
|
|
%a:_(s64) = G_FCONSTANT double 2.0
|
|
%b:_(s64) = G_FCONSTANT double 5.0
|
|
%res:_(s64) = G_FMINIMUM %a, %b
|
|
$d0 = COPY %res(s64)
|
|
RET_ReallyLR implicit $d0
|
|
|
|
...
|
|
---
|
|
name: fmaximum
|
|
legalized: true
|
|
liveins:
|
|
- { reg: '$d0' }
|
|
body: |
|
|
bb.1.entry:
|
|
liveins: $d0
|
|
|
|
; fmaximum(2.0, 5.0) = 5.0
|
|
; CHECK-LABEL: name: fmaximum
|
|
; CHECK: liveins: $d0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %b:_(s64) = G_FCONSTANT double 5.000000e+00
|
|
; CHECK-NEXT: $d0 = COPY %b(s64)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $d0
|
|
%a:_(s64) = G_FCONSTANT double 2.0
|
|
%b:_(s64) = G_FCONSTANT double 5.0
|
|
%res:_(s64) = G_FMAXIMUM %a, %b
|
|
$d0 = COPY %res(s64)
|
|
RET_ReallyLR implicit $d0
|
|
|
|
...
|
|
---
|
|
name: fadd32
|
|
legalized: true
|
|
liveins:
|
|
- { reg: '$s0' }
|
|
body: |
|
|
bb.1.entry:
|
|
liveins: $s0
|
|
|
|
; CHECK-LABEL: name: fadd32
|
|
; CHECK: liveins: $s0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %res:_(s32) = G_FCONSTANT float 4.200000e+01
|
|
; CHECK-NEXT: $s0 = COPY %res(s32)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $s0
|
|
%a:_(s32) = G_FCONSTANT float 40.0
|
|
%b:_(s32) = G_FCONSTANT float 2.0
|
|
%res:_(s32) = G_FADD %a, %b
|
|
$s0 = COPY %res(s32)
|
|
RET_ReallyLR implicit $s0
|
|
|
|
...
|