|
| 1 | +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 |
| 2 | +; RUN: llc -mattr=+sme2 -enable-subreg-liveness < %s| FileCheck %s |
| 3 | + |
| 4 | +target triple = "aarch64" |
| 5 | + |
| 6 | +; The tile-slice addressing mode supports an immediate of 0-7. |
| 7 | +; This is testing an immediate of 0, 1, 7 (folded) and 8 (not folded). |
| 8 | +define void @sme_tileslice_addrmode_zero_base_plus_constant_offset(i32 %slice, <vscale x 8 x half> %0, <vscale x 8 x half> %1, <vscale x 8 x half> %2, <vscale x 8 x half> %3, <vscale x 8 x half> %4) "aarch64_pstate_sm_enabled" { |
| 9 | +; CHECK-LABEL: sme_tileslice_addrmode_zero_base_plus_constant_offset: |
| 10 | +; CHECK: // %bb.0: |
| 11 | +; CHECK-NEXT: mov w8, wzr |
| 12 | +; CHECK-NEXT: mov w9, #8 // =0x8 |
| 13 | +; CHECK-NEXT: fdot za.s[w8, 0, vgx4], { z0.h - z3.h }, z4.h[0] |
| 14 | +; CHECK-NEXT: fdot za.s[w8, 1, vgx4], { z0.h - z3.h }, z4.h[0] |
| 15 | +; CHECK-NEXT: fdot za.s[w8, 7, vgx4], { z0.h - z3.h }, z4.h[0] |
| 16 | +; CHECK-NEXT: fdot za.s[w9, 0, vgx4], { z0.h - z3.h }, z4.h[0] |
| 17 | +; CHECK-NEXT: ret |
| 18 | + tail call void @llvm.aarch64.sme.fdot.lane.za32.vg1x4.nxv8f16(i32 0, <vscale x 8 x half> %0, <vscale x 8 x half> %1, <vscale x 8 x half> %2, <vscale x 8 x half> %3, <vscale x 8 x half> %4, i32 0) |
| 19 | + tail call void @llvm.aarch64.sme.fdot.lane.za32.vg1x4.nxv8f16(i32 1, <vscale x 8 x half> %0, <vscale x 8 x half> %1, <vscale x 8 x half> %2, <vscale x 8 x half> %3, <vscale x 8 x half> %4, i32 0) |
| 20 | + tail call void @llvm.aarch64.sme.fdot.lane.za32.vg1x4.nxv8f16(i32 7, <vscale x 8 x half> %0, <vscale x 8 x half> %1, <vscale x 8 x half> %2, <vscale x 8 x half> %3, <vscale x 8 x half> %4, i32 0) |
| 21 | + tail call void @llvm.aarch64.sme.fdot.lane.za32.vg1x4.nxv8f16(i32 8, <vscale x 8 x half> %0, <vscale x 8 x half> %1, <vscale x 8 x half> %2, <vscale x 8 x half> %3, <vscale x 8 x half> %4, i32 0) |
| 22 | + ret void |
| 23 | +} |
| 24 | + |
| 25 | +; The tile-slice addressing mode supports an immediate of 0-7. |
| 26 | +; This is testing an immediate of 0, 1, 7 (folded) and 8 (not folded). |
| 27 | +define void @sme_tileslice_addrmode_base_plus_constant_offset(i32 %slice, <vscale x 8 x half> %0, <vscale x 8 x half> %1, <vscale x 8 x half> %2, <vscale x 8 x half> %3, <vscale x 8 x half> %4) "aarch64_pstate_sm_enabled" { |
| 28 | +; CHECK-LABEL: sme_tileslice_addrmode_base_plus_constant_offset: |
| 29 | +; CHECK: // %bb.0: |
| 30 | +; CHECK-NEXT: mov w8, w0 |
| 31 | +; CHECK-NEXT: add w9, w0, #8 |
| 32 | +; CHECK-NEXT: fdot za.s[w8, 0, vgx4], { z0.h - z3.h }, z4.h[0] |
| 33 | +; CHECK-NEXT: fdot za.s[w8, 1, vgx4], { z0.h - z3.h }, z4.h[0] |
| 34 | +; CHECK-NEXT: fdot za.s[w8, 7, vgx4], { z0.h - z3.h }, z4.h[0] |
| 35 | +; CHECK-NEXT: fdot za.s[w9, 0, vgx4], { z0.h - z3.h }, z4.h[0] |
| 36 | +; CHECK-NEXT: ret |
| 37 | + %slice0 = add i32 %slice, 0 |
| 38 | + tail call void @llvm.aarch64.sme.fdot.lane.za32.vg1x4.nxv8f16(i32 %slice0, <vscale x 8 x half> %0, <vscale x 8 x half> %1, <vscale x 8 x half> %2, <vscale x 8 x half> %3, <vscale x 8 x half> %4, i32 0) |
| 39 | + %slice1 = add i32 %slice, 1 |
| 40 | + tail call void @llvm.aarch64.sme.fdot.lane.za32.vg1x4.nxv8f16(i32 %slice1, <vscale x 8 x half> %0, <vscale x 8 x half> %1, <vscale x 8 x half> %2, <vscale x 8 x half> %3, <vscale x 8 x half> %4, i32 0) |
| 41 | + %slice7 = add i32 %slice, 7 |
| 42 | + tail call void @llvm.aarch64.sme.fdot.lane.za32.vg1x4.nxv8f16(i32 %slice7, <vscale x 8 x half> %0, <vscale x 8 x half> %1, <vscale x 8 x half> %2, <vscale x 8 x half> %3, <vscale x 8 x half> %4, i32 0) |
| 43 | + %slice8 = add i32 %slice, 8 |
| 44 | + tail call void @llvm.aarch64.sme.fdot.lane.za32.vg1x4.nxv8f16(i32 %slice8, <vscale x 8 x half> %0, <vscale x 8 x half> %1, <vscale x 8 x half> %2, <vscale x 8 x half> %3, <vscale x 8 x half> %4, i32 0) |
| 45 | + ret void |
| 46 | +} |
| 47 | + |
| 48 | +define void @sme_tileslice_addrmode_base_plus_zero_offset(i32 %slice, <vscale x 8 x half> %0, <vscale x 8 x half> %1, <vscale x 8 x half> %2, <vscale x 8 x half> %3, <vscale x 8 x half> %4) "aarch64_pstate_sm_enabled" { |
| 49 | +; CHECK-LABEL: sme_tileslice_addrmode_base_plus_zero_offset: |
| 50 | +; CHECK: // %bb.0: |
| 51 | +; CHECK-NEXT: mov w8, w0 |
| 52 | +; CHECK-NEXT: fdot za.s[w8, 0, vgx4], { z0.h - z3.h }, z4.h[0] |
| 53 | +; CHECK-NEXT: ret |
| 54 | + tail call void @llvm.aarch64.sme.fdot.lane.za32.vg1x4.nxv8f16(i32 %slice, <vscale x 8 x half> %0, <vscale x 8 x half> %1, <vscale x 8 x half> %2, <vscale x 8 x half> %3, <vscale x 8 x half> %4, i32 0) |
| 55 | + ret void |
| 56 | +} |
| 57 | + |
| 58 | +declare void @llvm.aarch64.sme.fdot.lane.za32.vg1x4.nxv8f16(i32, <vscale x 8 x half>, <vscale x 8 x half>, <vscale x 8 x half>, <vscale x 8 x half>, <vscale x 8 x half>, i32 immarg) |
0 commit comments