2021-03-18 05:46:32 +08:00
|
|
|
; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve < %s | FileCheck %s
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
|
|
|
|
;
|
|
|
|
; LDFF1B
|
|
|
|
;
|
|
|
|
|
|
|
|
define <vscale x 16 x i8> @ldff1b(<vscale x 16 x i1> %pg, i8* %a) {
|
|
|
|
; CHECK-LABEL: ldff1b:
|
|
|
|
; CHECK: ldff1b { z0.b }, p0/z, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%load = call <vscale x 16 x i8> @llvm.aarch64.sve.ldff1.nxv16i8(<vscale x 16 x i1> %pg, i8* %a)
|
|
|
|
ret <vscale x 16 x i8> %load
|
|
|
|
}
|
|
|
|
|
[llvm][SVE] Addressing mode for FF/NF loads.
Summary:
This patch adds addressing mode computation for the following SVE
instructions:
* ldff1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, <Xm>{, lsl #imm}}]
* ldnf1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, #<imm>, mul vl}]
Reviewers: andwar, sdesmalen, rengolin, efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76209
2020-03-10 03:32:29 +08:00
|
|
|
define <vscale x 16 x i8> @ldff1b_reg(<vscale x 16 x i1> %pg, i8* %a, i64 %offset) {
|
|
|
|
; CHECK-LABEL: ldff1b_reg:
|
|
|
|
; CHECK: ldff1b { z0.b }, p0/z, [x0, x1]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%base = getelementptr i8, i8* %a, i64 %offset
|
|
|
|
%load = call <vscale x 16 x i8> @llvm.aarch64.sve.ldff1.nxv16i8(<vscale x 16 x i1> %pg, i8* %base)
|
|
|
|
ret <vscale x 16 x i8> %load
|
|
|
|
}
|
|
|
|
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
define <vscale x 8 x i16> @ldff1b_h(<vscale x 8 x i1> %pg, i8* %a) {
|
|
|
|
; CHECK-LABEL: ldff1b_h:
|
|
|
|
; CHECK: ldff1b { z0.h }, p0/z, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%load = call <vscale x 8 x i8> @llvm.aarch64.sve.ldff1.nxv8i8(<vscale x 8 x i1> %pg, i8* %a)
|
|
|
|
%res = zext <vscale x 8 x i8> %load to <vscale x 8 x i16>
|
|
|
|
ret <vscale x 8 x i16> %res
|
|
|
|
}
|
|
|
|
|
[llvm][SVE] Addressing mode for FF/NF loads.
Summary:
This patch adds addressing mode computation for the following SVE
instructions:
* ldff1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, <Xm>{, lsl #imm}}]
* ldnf1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, #<imm>, mul vl}]
Reviewers: andwar, sdesmalen, rengolin, efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76209
2020-03-10 03:32:29 +08:00
|
|
|
define <vscale x 8 x i16> @ldff1b_h_reg(<vscale x 8 x i1> %pg, i8* %a, i64 %offset) {
|
|
|
|
; CHECK-LABEL: ldff1b_h_reg:
|
|
|
|
; CHECK: ldff1b { z0.h }, p0/z, [x0, x1]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%base = getelementptr i8, i8* %a, i64 %offset
|
|
|
|
%load = call <vscale x 8 x i8> @llvm.aarch64.sve.ldff1.nxv8i8(<vscale x 8 x i1> %pg, i8* %base)
|
|
|
|
%res = zext <vscale x 8 x i8> %load to <vscale x 8 x i16>
|
|
|
|
ret <vscale x 8 x i16> %res
|
|
|
|
}
|
|
|
|
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
define <vscale x 4 x i32> @ldff1b_s(<vscale x 4 x i1> %pg, i8* %a) {
|
|
|
|
; CHECK-LABEL: ldff1b_s:
|
|
|
|
; CHECK: ldff1b { z0.s }, p0/z, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%load = call <vscale x 4 x i8> @llvm.aarch64.sve.ldff1.nxv4i8(<vscale x 4 x i1> %pg, i8* %a)
|
|
|
|
%res = zext <vscale x 4 x i8> %load to <vscale x 4 x i32>
|
|
|
|
ret <vscale x 4 x i32> %res
|
|
|
|
}
|
|
|
|
|
[llvm][SVE] Addressing mode for FF/NF loads.
Summary:
This patch adds addressing mode computation for the following SVE
instructions:
* ldff1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, <Xm>{, lsl #imm}}]
* ldnf1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, #<imm>, mul vl}]
Reviewers: andwar, sdesmalen, rengolin, efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76209
2020-03-10 03:32:29 +08:00
|
|
|
define <vscale x 4 x i32> @ldff1b_s_reg(<vscale x 4 x i1> %pg, i8* %a, i64 %offset) {
|
|
|
|
; CHECK-LABEL: ldff1b_s_reg:
|
|
|
|
; CHECK: ldff1b { z0.s }, p0/z, [x0, x1]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%base = getelementptr i8, i8* %a, i64 %offset
|
|
|
|
%load = call <vscale x 4 x i8> @llvm.aarch64.sve.ldff1.nxv4i8(<vscale x 4 x i1> %pg, i8* %base)
|
|
|
|
%res = zext <vscale x 4 x i8> %load to <vscale x 4 x i32>
|
|
|
|
ret <vscale x 4 x i32> %res
|
|
|
|
}
|
|
|
|
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
define <vscale x 2 x i64> @ldff1b_d(<vscale x 2 x i1> %pg, i8* %a) {
|
|
|
|
; CHECK-LABEL: ldff1b_d:
|
|
|
|
; CHECK: ldff1b { z0.d }, p0/z, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%load = call <vscale x 2 x i8> @llvm.aarch64.sve.ldff1.nxv2i8(<vscale x 2 x i1> %pg, i8* %a)
|
|
|
|
%res = zext <vscale x 2 x i8> %load to <vscale x 2 x i64>
|
|
|
|
ret <vscale x 2 x i64> %res
|
|
|
|
}
|
|
|
|
|
[llvm][SVE] Addressing mode for FF/NF loads.
Summary:
This patch adds addressing mode computation for the following SVE
instructions:
* ldff1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, <Xm>{, lsl #imm}}]
* ldnf1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, #<imm>, mul vl}]
Reviewers: andwar, sdesmalen, rengolin, efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76209
2020-03-10 03:32:29 +08:00
|
|
|
define <vscale x 2 x i64> @ldff1b_d_reg(<vscale x 2 x i1> %pg, i8* %a, i64 %offset) {
|
|
|
|
; CHECK-LABEL: ldff1b_d_reg:
|
|
|
|
; CHECK: ldff1b { z0.d }, p0/z, [x0, x1]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%base = getelementptr i8, i8* %a, i64 %offset
|
|
|
|
%load = call <vscale x 2 x i8> @llvm.aarch64.sve.ldff1.nxv2i8(<vscale x 2 x i1> %pg, i8* %base)
|
|
|
|
%res = zext <vscale x 2 x i8> %load to <vscale x 2 x i64>
|
|
|
|
ret <vscale x 2 x i64> %res
|
|
|
|
}
|
|
|
|
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
;
|
|
|
|
; LDFF1SB
|
|
|
|
;
|
|
|
|
|
|
|
|
define <vscale x 8 x i16> @ldff1sb_h(<vscale x 8 x i1> %pg, i8* %a) {
|
|
|
|
; CHECK-LABEL: ldff1sb_h:
|
|
|
|
; CHECK: ldff1sb { z0.h }, p0/z, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%load = call <vscale x 8 x i8> @llvm.aarch64.sve.ldff1.nxv8i8(<vscale x 8 x i1> %pg, i8* %a)
|
|
|
|
%res = sext <vscale x 8 x i8> %load to <vscale x 8 x i16>
|
|
|
|
ret <vscale x 8 x i16> %res
|
|
|
|
}
|
|
|
|
|
[llvm][SVE] Addressing mode for FF/NF loads.
Summary:
This patch adds addressing mode computation for the following SVE
instructions:
* ldff1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, <Xm>{, lsl #imm}}]
* ldnf1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, #<imm>, mul vl}]
Reviewers: andwar, sdesmalen, rengolin, efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76209
2020-03-10 03:32:29 +08:00
|
|
|
define <vscale x 8 x i16> @ldff1sb_h_reg(<vscale x 8 x i1> %pg, i8* %a, i64 %offset) {
|
|
|
|
; CHECK-LABEL: ldff1sb_h_reg:
|
|
|
|
; CHECK: ldff1sb { z0.h }, p0/z, [x0, x1]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%base = getelementptr i8, i8* %a, i64 %offset
|
|
|
|
%load = call <vscale x 8 x i8> @llvm.aarch64.sve.ldff1.nxv8i8(<vscale x 8 x i1> %pg, i8* %base)
|
|
|
|
%res = sext <vscale x 8 x i8> %load to <vscale x 8 x i16>
|
|
|
|
ret <vscale x 8 x i16> %res
|
|
|
|
}
|
|
|
|
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
define <vscale x 4 x i32> @ldff1sb_s(<vscale x 4 x i1> %pg, i8* %a) {
|
|
|
|
; CHECK-LABEL: ldff1sb_s:
|
|
|
|
; CHECK: ldff1sb { z0.s }, p0/z, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%load = call <vscale x 4 x i8> @llvm.aarch64.sve.ldff1.nxv4i8(<vscale x 4 x i1> %pg, i8* %a)
|
|
|
|
%res = sext <vscale x 4 x i8> %load to <vscale x 4 x i32>
|
|
|
|
ret <vscale x 4 x i32> %res
|
|
|
|
}
|
|
|
|
|
[llvm][SVE] Addressing mode for FF/NF loads.
Summary:
This patch adds addressing mode computation for the following SVE
instructions:
* ldff1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, <Xm>{, lsl #imm}}]
* ldnf1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, #<imm>, mul vl}]
Reviewers: andwar, sdesmalen, rengolin, efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76209
2020-03-10 03:32:29 +08:00
|
|
|
define <vscale x 4 x i32> @ldff1sb_s_reg(<vscale x 4 x i1> %pg, i8* %a, i64 %offset) {
|
|
|
|
; CHECK-LABEL: ldff1sb_s_reg:
|
|
|
|
; CHECK: ldff1sb { z0.s }, p0/z, [x0, x1]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%base = getelementptr i8, i8* %a, i64 %offset
|
|
|
|
%load = call <vscale x 4 x i8> @llvm.aarch64.sve.ldff1.nxv4i8(<vscale x 4 x i1> %pg, i8* %base)
|
|
|
|
%res = sext <vscale x 4 x i8> %load to <vscale x 4 x i32>
|
|
|
|
ret <vscale x 4 x i32> %res
|
|
|
|
}
|
|
|
|
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
define <vscale x 2 x i64> @ldff1sb_d(<vscale x 2 x i1> %pg, i8* %a) {
|
|
|
|
; CHECK-LABEL: ldff1sb_d:
|
|
|
|
; CHECK: ldff1sb { z0.d }, p0/z, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%load = call <vscale x 2 x i8> @llvm.aarch64.sve.ldff1.nxv2i8(<vscale x 2 x i1> %pg, i8* %a)
|
|
|
|
%res = sext <vscale x 2 x i8> %load to <vscale x 2 x i64>
|
|
|
|
ret <vscale x 2 x i64> %res
|
|
|
|
}
|
|
|
|
|
[llvm][SVE] Addressing mode for FF/NF loads.
Summary:
This patch adds addressing mode computation for the following SVE
instructions:
* ldff1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, <Xm>{, lsl #imm}}]
* ldnf1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, #<imm>, mul vl}]
Reviewers: andwar, sdesmalen, rengolin, efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76209
2020-03-10 03:32:29 +08:00
|
|
|
define <vscale x 2 x i64> @ldff1sb_d_reg(<vscale x 2 x i1> %pg, i8* %a, i64 %offset) {
|
|
|
|
; CHECK-LABEL: ldff1sb_d_reg:
|
|
|
|
; CHECK: ldff1sb { z0.d }, p0/z, [x0, x1]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%base = getelementptr i8, i8* %a, i64 %offset
|
|
|
|
%load = call <vscale x 2 x i8> @llvm.aarch64.sve.ldff1.nxv2i8(<vscale x 2 x i1> %pg, i8* %base)
|
|
|
|
%res = sext <vscale x 2 x i8> %load to <vscale x 2 x i64>
|
|
|
|
ret <vscale x 2 x i64> %res
|
|
|
|
}
|
|
|
|
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
;
|
|
|
|
; LDFF1H
|
|
|
|
;
|
|
|
|
|
|
|
|
define <vscale x 8 x i16> @ldff1h(<vscale x 8 x i1> %pg, i16* %a) {
|
|
|
|
; CHECK-LABEL: ldff1h:
|
|
|
|
; CHECK: ldff1h { z0.h }, p0/z, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%load = call <vscale x 8 x i16> @llvm.aarch64.sve.ldff1.nxv8i16(<vscale x 8 x i1> %pg, i16* %a)
|
|
|
|
ret <vscale x 8 x i16> %load
|
|
|
|
}
|
|
|
|
|
[llvm][SVE] Addressing mode for FF/NF loads.
Summary:
This patch adds addressing mode computation for the following SVE
instructions:
* ldff1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, <Xm>{, lsl #imm}}]
* ldnf1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, #<imm>, mul vl}]
Reviewers: andwar, sdesmalen, rengolin, efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76209
2020-03-10 03:32:29 +08:00
|
|
|
define <vscale x 8 x i16> @ldff1h_reg(<vscale x 8 x i1> %pg, i16* %a, i64 %offset) {
|
|
|
|
; CHECK-LABEL: ldff1h_reg:
|
|
|
|
; CHECK: ldff1h { z0.h }, p0/z, [x0, x1, lsl #1]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%base = getelementptr i16, i16* %a, i64 %offset
|
|
|
|
%load = call <vscale x 8 x i16> @llvm.aarch64.sve.ldff1.nxv8i16(<vscale x 8 x i1> %pg, i16* %base)
|
|
|
|
ret <vscale x 8 x i16> %load
|
|
|
|
}
|
|
|
|
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
define <vscale x 4 x i32> @ldff1h_s(<vscale x 4 x i1> %pg, i16* %a) {
|
|
|
|
; CHECK-LABEL: ldff1h_s:
|
|
|
|
; CHECK: ldff1h { z0.s }, p0/z, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%load = call <vscale x 4 x i16> @llvm.aarch64.sve.ldff1.nxv4i16(<vscale x 4 x i1> %pg, i16* %a)
|
|
|
|
%res = zext <vscale x 4 x i16> %load to <vscale x 4 x i32>
|
|
|
|
ret <vscale x 4 x i32> %res
|
|
|
|
}
|
|
|
|
|
[llvm][SVE] Addressing mode for FF/NF loads.
Summary:
This patch adds addressing mode computation for the following SVE
instructions:
* ldff1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, <Xm>{, lsl #imm}}]
* ldnf1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, #<imm>, mul vl}]
Reviewers: andwar, sdesmalen, rengolin, efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76209
2020-03-10 03:32:29 +08:00
|
|
|
define <vscale x 4 x i32> @ldff1h_s_reg(<vscale x 4 x i1> %pg, i16* %a, i64 %offset) {
|
|
|
|
; CHECK-LABEL: ldff1h_s_reg:
|
|
|
|
; CHECK: ldff1h { z0.s }, p0/z, [x0, x1, lsl #1]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%base = getelementptr i16, i16* %a, i64 %offset
|
|
|
|
%load = call <vscale x 4 x i16> @llvm.aarch64.sve.ldff1.nxv4i16(<vscale x 4 x i1> %pg, i16* %base)
|
|
|
|
%res = zext <vscale x 4 x i16> %load to <vscale x 4 x i32>
|
|
|
|
ret <vscale x 4 x i32> %res
|
|
|
|
}
|
|
|
|
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
define <vscale x 2 x i64> @ldff1h_d(<vscale x 2 x i1> %pg, i16* %a) {
|
|
|
|
; CHECK-LABEL: ldff1h_d:
|
|
|
|
; CHECK: ldff1h { z0.d }, p0/z, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%load = call <vscale x 2 x i16> @llvm.aarch64.sve.ldff1.nxv2i16(<vscale x 2 x i1> %pg, i16* %a)
|
|
|
|
%res = zext <vscale x 2 x i16> %load to <vscale x 2 x i64>
|
|
|
|
ret <vscale x 2 x i64> %res
|
|
|
|
}
|
|
|
|
|
[llvm][SVE] Addressing mode for FF/NF loads.
Summary:
This patch adds addressing mode computation for the following SVE
instructions:
* ldff1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, <Xm>{, lsl #imm}}]
* ldnf1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, #<imm>, mul vl}]
Reviewers: andwar, sdesmalen, rengolin, efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76209
2020-03-10 03:32:29 +08:00
|
|
|
define <vscale x 2 x i64> @ldff1h_d_reg(<vscale x 2 x i1> %pg, i16* %a, i64 %offset) {
|
|
|
|
; CHECK-LABEL: ldff1h_d_reg:
|
|
|
|
; CHECK: ldff1h { z0.d }, p0/z, [x0, x1, lsl #1]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%base = getelementptr i16, i16* %a, i64 %offset
|
|
|
|
%load = call <vscale x 2 x i16> @llvm.aarch64.sve.ldff1.nxv2i16(<vscale x 2 x i1> %pg, i16* %base)
|
|
|
|
%res = zext <vscale x 2 x i16> %load to <vscale x 2 x i64>
|
|
|
|
ret <vscale x 2 x i64> %res
|
|
|
|
}
|
|
|
|
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
define <vscale x 8 x half> @ldff1h_f16(<vscale x 8 x i1> %pg, half* %a) {
|
|
|
|
; CHECK-LABEL: ldff1h_f16:
|
|
|
|
; CHECK: ldff1h { z0.h }, p0/z, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%load = call <vscale x 8 x half> @llvm.aarch64.sve.ldff1.nxv8f16(<vscale x 8 x i1> %pg, half* %a)
|
|
|
|
ret <vscale x 8 x half> %load
|
|
|
|
}
|
|
|
|
|
2020-06-26 16:48:53 +08:00
|
|
|
define <vscale x 8 x bfloat> @ldff1h_bf16(<vscale x 8 x i1> %pg, bfloat* %a) #0 {
|
[AArch64][SVE] Add bfloat16 support to load intrinsics
Summary:
Bfloat16 support added for the following intrinsics:
- LD1
- LD1RQ
- LDNT1
- LDNF1
- LDFF1
Reviewers: sdesmalen, c-rhodes, efriedma, stuij, fpetrogalli, david-arm
Reviewed By: fpetrogalli
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, danielkiss, cfe-commits, llvm-commits
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D82298
2020-06-24 16:47:49 +08:00
|
|
|
; CHECK-LABEL: ldff1h_bf16:
|
|
|
|
; CHECK: ldff1h { z0.h }, p0/z, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%load = call <vscale x 8 x bfloat> @llvm.aarch64.sve.ldff1.nxv8bf16(<vscale x 8 x i1> %pg, bfloat* %a)
|
|
|
|
ret <vscale x 8 x bfloat> %load
|
|
|
|
}
|
|
|
|
|
[llvm][SVE] Addressing mode for FF/NF loads.
Summary:
This patch adds addressing mode computation for the following SVE
instructions:
* ldff1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, <Xm>{, lsl #imm}}]
* ldnf1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, #<imm>, mul vl}]
Reviewers: andwar, sdesmalen, rengolin, efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76209
2020-03-10 03:32:29 +08:00
|
|
|
define <vscale x 8 x half> @ldff1h_f16_reg(<vscale x 8 x i1> %pg, half* %a, i64 %offset) {
|
|
|
|
; CHECK-LABEL: ldff1h_f16_reg:
|
|
|
|
; CHECK: ldff1h { z0.h }, p0/z, [x0, x1, lsl #1]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%base = getelementptr half, half* %a, i64 %offset
|
|
|
|
%load = call <vscale x 8 x half> @llvm.aarch64.sve.ldff1.nxv8f16(<vscale x 8 x i1> %pg, half* %base)
|
|
|
|
ret <vscale x 8 x half> %load
|
|
|
|
}
|
|
|
|
|
2020-06-26 16:48:53 +08:00
|
|
|
define <vscale x 8 x bfloat> @ldff1h_bf16_reg(<vscale x 8 x i1> %pg, bfloat* %a, i64 %offset) #0 {
|
[AArch64][SVE] Add bfloat16 support to load intrinsics
Summary:
Bfloat16 support added for the following intrinsics:
- LD1
- LD1RQ
- LDNT1
- LDNF1
- LDFF1
Reviewers: sdesmalen, c-rhodes, efriedma, stuij, fpetrogalli, david-arm
Reviewed By: fpetrogalli
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, danielkiss, cfe-commits, llvm-commits
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D82298
2020-06-24 16:47:49 +08:00
|
|
|
; CHECK-LABEL: ldff1h_bf16_reg:
|
|
|
|
; CHECK: ldff1h { z0.h }, p0/z, [x0, x1, lsl #1]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%base = getelementptr bfloat, bfloat* %a, i64 %offset
|
|
|
|
%load = call <vscale x 8 x bfloat> @llvm.aarch64.sve.ldff1.nxv8bf16(<vscale x 8 x i1> %pg, bfloat* %base)
|
|
|
|
ret <vscale x 8 x bfloat> %load
|
|
|
|
}
|
|
|
|
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
;
|
|
|
|
; LDFF1SH
|
|
|
|
;
|
|
|
|
|
|
|
|
define <vscale x 4 x i32> @ldff1sh_s(<vscale x 4 x i1> %pg, i16* %a) {
|
|
|
|
; CHECK-LABEL: ldff1sh_s:
|
|
|
|
; CHECK: ldff1sh { z0.s }, p0/z, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%load = call <vscale x 4 x i16> @llvm.aarch64.sve.ldff1.nxv4i16(<vscale x 4 x i1> %pg, i16* %a)
|
|
|
|
%res = sext <vscale x 4 x i16> %load to <vscale x 4 x i32>
|
|
|
|
ret <vscale x 4 x i32> %res
|
|
|
|
}
|
|
|
|
|
[llvm][SVE] Addressing mode for FF/NF loads.
Summary:
This patch adds addressing mode computation for the following SVE
instructions:
* ldff1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, <Xm>{, lsl #imm}}]
* ldnf1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, #<imm>, mul vl}]
Reviewers: andwar, sdesmalen, rengolin, efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76209
2020-03-10 03:32:29 +08:00
|
|
|
define <vscale x 4 x i32> @ldff1sh_s_reg(<vscale x 4 x i1> %pg, i16* %a, i64 %offset) {
|
|
|
|
; CHECK-LABEL: ldff1sh_s_reg:
|
|
|
|
; CHECK: ldff1sh { z0.s }, p0/z, [x0, x1, lsl #1]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%base = getelementptr i16, i16* %a, i64 %offset
|
|
|
|
%load = call <vscale x 4 x i16> @llvm.aarch64.sve.ldff1.nxv4i16(<vscale x 4 x i1> %pg, i16* %base)
|
|
|
|
%res = sext <vscale x 4 x i16> %load to <vscale x 4 x i32>
|
|
|
|
ret <vscale x 4 x i32> %res
|
|
|
|
}
|
|
|
|
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
define <vscale x 2 x i64> @ldff1sh_d(<vscale x 2 x i1> %pg, i16* %a) {
|
|
|
|
; CHECK-LABEL: ldff1sh_d:
|
|
|
|
; CHECK: ldff1sh { z0.d }, p0/z, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%load = call <vscale x 2 x i16> @llvm.aarch64.sve.ldff1.nxv2i16(<vscale x 2 x i1> %pg, i16* %a)
|
|
|
|
%res = sext <vscale x 2 x i16> %load to <vscale x 2 x i64>
|
|
|
|
ret <vscale x 2 x i64> %res
|
|
|
|
}
|
|
|
|
|
[llvm][SVE] Addressing mode for FF/NF loads.
Summary:
This patch adds addressing mode computation for the following SVE
instructions:
* ldff1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, <Xm>{, lsl #imm}}]
* ldnf1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, #<imm>, mul vl}]
Reviewers: andwar, sdesmalen, rengolin, efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76209
2020-03-10 03:32:29 +08:00
|
|
|
define <vscale x 2 x i64> @ldff1sh_d_reg(<vscale x 2 x i1> %pg, i16* %a, i64 %offset) {
|
|
|
|
; CHECK-LABEL: ldff1sh_d_reg:
|
|
|
|
; CHECK: ldff1sh { z0.d }, p0/z, [x0, x1, lsl #1]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%base = getelementptr i16, i16* %a, i64 %offset
|
|
|
|
%load = call <vscale x 2 x i16> @llvm.aarch64.sve.ldff1.nxv2i16(<vscale x 2 x i1> %pg, i16* %base)
|
|
|
|
%res = sext <vscale x 2 x i16> %load to <vscale x 2 x i64>
|
|
|
|
ret <vscale x 2 x i64> %res
|
|
|
|
}
|
|
|
|
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
;
|
|
|
|
; LDFF1W
|
|
|
|
;
|
|
|
|
|
|
|
|
define <vscale x 4 x i32> @ldff1w(<vscale x 4 x i1> %pg, i32* %a) {
|
|
|
|
; CHECK-LABEL: ldff1w:
|
|
|
|
; CHECK: ldff1w { z0.s }, p0/z, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%load = call <vscale x 4 x i32> @llvm.aarch64.sve.ldff1.nxv4i32(<vscale x 4 x i1> %pg, i32* %a)
|
|
|
|
ret <vscale x 4 x i32> %load
|
|
|
|
}
|
|
|
|
|
[llvm][SVE] Addressing mode for FF/NF loads.
Summary:
This patch adds addressing mode computation for the following SVE
instructions:
* ldff1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, <Xm>{, lsl #imm}}]
* ldnf1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, #<imm>, mul vl}]
Reviewers: andwar, sdesmalen, rengolin, efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76209
2020-03-10 03:32:29 +08:00
|
|
|
define <vscale x 4 x i32> @ldff1w_reg(<vscale x 4 x i1> %pg, i32* %a, i64 %offset) {
|
|
|
|
; CHECK-LABEL: ldff1w_reg:
|
|
|
|
; CHECK: ldff1w { z0.s }, p0/z, [x0, x1, lsl #2]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%base = getelementptr i32, i32* %a, i64 %offset
|
|
|
|
%load = call <vscale x 4 x i32> @llvm.aarch64.sve.ldff1.nxv4i32(<vscale x 4 x i1> %pg, i32* %base)
|
|
|
|
ret <vscale x 4 x i32> %load
|
|
|
|
}
|
|
|
|
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
define <vscale x 2 x i64> @ldff1w_d(<vscale x 2 x i1> %pg, i32* %a) {
|
|
|
|
; CHECK-LABEL: ldff1w_d:
|
|
|
|
; CHECK: ldff1w { z0.d }, p0/z, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%load = call <vscale x 2 x i32> @llvm.aarch64.sve.ldff1.nxv2i32(<vscale x 2 x i1> %pg, i32* %a)
|
|
|
|
%res = zext <vscale x 2 x i32> %load to <vscale x 2 x i64>
|
|
|
|
ret <vscale x 2 x i64> %res
|
|
|
|
}
|
|
|
|
|
[llvm][SVE] Addressing mode for FF/NF loads.
Summary:
This patch adds addressing mode computation for the following SVE
instructions:
* ldff1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, <Xm>{, lsl #imm}}]
* ldnf1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, #<imm>, mul vl}]
Reviewers: andwar, sdesmalen, rengolin, efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76209
2020-03-10 03:32:29 +08:00
|
|
|
define <vscale x 2 x i64> @ldff1w_d_reg(<vscale x 2 x i1> %pg, i32* %a, i64 %offset) {
|
|
|
|
; CHECK-LABEL: ldff1w_d_reg:
|
|
|
|
; CHECK: ldff1w { z0.d }, p0/z, [x0, x1, lsl #2]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%base = getelementptr i32, i32* %a, i64 %offset
|
|
|
|
%load = call <vscale x 2 x i32> @llvm.aarch64.sve.ldff1.nxv2i32(<vscale x 2 x i1> %pg, i32* %base)
|
|
|
|
%res = zext <vscale x 2 x i32> %load to <vscale x 2 x i64>
|
|
|
|
ret <vscale x 2 x i64> %res
|
|
|
|
}
|
|
|
|
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
define <vscale x 4 x float> @ldff1w_f32(<vscale x 4 x i1> %pg, float* %a) {
|
|
|
|
; CHECK-LABEL: ldff1w_f32:
|
|
|
|
; CHECK: ldff1w { z0.s }, p0/z, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%load = call <vscale x 4 x float> @llvm.aarch64.sve.ldff1.nxv4f32(<vscale x 4 x i1> %pg, float* %a)
|
|
|
|
ret <vscale x 4 x float> %load
|
|
|
|
}
|
|
|
|
|
[llvm][SVE] Addressing mode for FF/NF loads.
Summary:
This patch adds addressing mode computation for the following SVE
instructions:
* ldff1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, <Xm>{, lsl #imm}}]
* ldnf1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, #<imm>, mul vl}]
Reviewers: andwar, sdesmalen, rengolin, efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76209
2020-03-10 03:32:29 +08:00
|
|
|
define <vscale x 4 x float> @ldff1w_f32_reg(<vscale x 4 x i1> %pg, float* %a, i64 %offset) {
|
|
|
|
; CHECK-LABEL: ldff1w_f32_reg:
|
|
|
|
; CHECK: ldff1w { z0.s }, p0/z, [x0, x1, lsl #2]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%base = getelementptr float, float* %a, i64 %offset
|
|
|
|
%load = call <vscale x 4 x float> @llvm.aarch64.sve.ldff1.nxv4f32(<vscale x 4 x i1> %pg, float* %base)
|
|
|
|
ret <vscale x 4 x float> %load
|
|
|
|
}
|
|
|
|
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
define <vscale x 2 x float> @ldff1w_2f32(<vscale x 2 x i1> %pg, float* %a) {
|
|
|
|
; CHECK-LABEL: ldff1w_2f32:
|
|
|
|
; CHECK: ldff1w { z0.d }, p0/z, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%load = call <vscale x 2 x float> @llvm.aarch64.sve.ldff1.nxv2f32(<vscale x 2 x i1> %pg, float* %a)
|
|
|
|
ret <vscale x 2 x float> %load
|
|
|
|
}
|
|
|
|
|
[llvm][SVE] Addressing mode for FF/NF loads.
Summary:
This patch adds addressing mode computation for the following SVE
instructions:
* ldff1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, <Xm>{, lsl #imm}}]
* ldnf1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, #<imm>, mul vl}]
Reviewers: andwar, sdesmalen, rengolin, efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76209
2020-03-10 03:32:29 +08:00
|
|
|
define <vscale x 2 x float> @ldff1w_2f32_reg(<vscale x 2 x i1> %pg, float* %a, i64 %offset) {
|
|
|
|
; CHECK-LABEL: ldff1w_2f32_reg:
|
|
|
|
; CHECK: ldff1w { z0.d }, p0/z, [x0, x1, lsl #2]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%base = getelementptr float, float* %a, i64 %offset
|
|
|
|
%load = call <vscale x 2 x float> @llvm.aarch64.sve.ldff1.nxv2f32(<vscale x 2 x i1> %pg, float* %base)
|
|
|
|
ret <vscale x 2 x float> %load
|
|
|
|
}
|
|
|
|
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
;
|
|
|
|
; LDFF1SW
|
|
|
|
;
|
|
|
|
|
|
|
|
define <vscale x 2 x i64> @ldff1sw_d(<vscale x 2 x i1> %pg, i32* %a) {
|
|
|
|
; CHECK-LABEL: ldff1sw_d:
|
|
|
|
; CHECK: ldff1sw { z0.d }, p0/z, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%load = call <vscale x 2 x i32> @llvm.aarch64.sve.ldff1.nxv2i32(<vscale x 2 x i1> %pg, i32* %a)
|
|
|
|
%res = sext <vscale x 2 x i32> %load to <vscale x 2 x i64>
|
|
|
|
ret <vscale x 2 x i64> %res
|
|
|
|
}
|
|
|
|
|
[llvm][SVE] Addressing mode for FF/NF loads.
Summary:
This patch adds addressing mode computation for the following SVE
instructions:
* ldff1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, <Xm>{, lsl #imm}}]
* ldnf1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, #<imm>, mul vl}]
Reviewers: andwar, sdesmalen, rengolin, efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76209
2020-03-10 03:32:29 +08:00
|
|
|
define <vscale x 2 x i64> @ldff1sw_d_reg(<vscale x 2 x i1> %pg, i32* %a, i64 %offset) {
|
|
|
|
; CHECK-LABEL: ldff1sw_d_reg:
|
|
|
|
; CHECK: ldff1sw { z0.d }, p0/z, [x0, x1, lsl #2]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%base = getelementptr i32, i32* %a, i64 %offset
|
|
|
|
%load = call <vscale x 2 x i32> @llvm.aarch64.sve.ldff1.nxv2i32(<vscale x 2 x i1> %pg, i32* %base)
|
|
|
|
%res = sext <vscale x 2 x i32> %load to <vscale x 2 x i64>
|
|
|
|
ret <vscale x 2 x i64> %res
|
|
|
|
}
|
|
|
|
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
;
|
|
|
|
; LDFF1D
|
|
|
|
;
|
|
|
|
|
|
|
|
define <vscale x 2 x i64> @ldff1d(<vscale x 2 x i1> %pg, i64* %a) {
|
|
|
|
; CHECK-LABEL: ldff1d:
|
|
|
|
; CHECK: ldff1d { z0.d }, p0/z, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%load = call <vscale x 2 x i64> @llvm.aarch64.sve.ldff1.nxv2i64(<vscale x 2 x i1> %pg, i64* %a)
|
|
|
|
ret <vscale x 2 x i64> %load
|
|
|
|
}
|
|
|
|
|
[llvm][SVE] Addressing mode for FF/NF loads.
Summary:
This patch adds addressing mode computation for the following SVE
instructions:
* ldff1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, <Xm>{, lsl #imm}}]
* ldnf1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, #<imm>, mul vl}]
Reviewers: andwar, sdesmalen, rengolin, efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76209
2020-03-10 03:32:29 +08:00
|
|
|
define <vscale x 2 x i64> @ldff1d_reg(<vscale x 2 x i1> %pg, i64* %a, i64 %offset) {
|
|
|
|
; CHECK-LABEL: ldff1d_reg:
|
|
|
|
; CHECK: ldff1d { z0.d }, p0/z, [x0, x1, lsl #3]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%base = getelementptr i64, i64* %a, i64 %offset
|
|
|
|
%load = call <vscale x 2 x i64> @llvm.aarch64.sve.ldff1.nxv2i64(<vscale x 2 x i1> %pg, i64* %base)
|
|
|
|
ret <vscale x 2 x i64> %load
|
|
|
|
}
|
|
|
|
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
|
|
|
|
define <vscale x 2 x double> @ldff1d_f64(<vscale x 2 x i1> %pg, double* %a) {
|
|
|
|
; CHECK-LABEL: ldff1d_f64:
|
|
|
|
; CHECK: ldff1d { z0.d }, p0/z, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%load = call <vscale x 2 x double> @llvm.aarch64.sve.ldff1.nxv2f64(<vscale x 2 x i1> %pg, double* %a)
|
|
|
|
ret <vscale x 2 x double> %load
|
|
|
|
}
|
|
|
|
|
[llvm][SVE] Addressing mode for FF/NF loads.
Summary:
This patch adds addressing mode computation for the following SVE
instructions:
* ldff1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, <Xm>{, lsl #imm}}]
* ldnf1{s}<T1> { <Zt>.<T2> }, <Pg>/Z, [<Xn|SP>{, #<imm>, mul vl}]
Reviewers: andwar, sdesmalen, rengolin, efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76209
2020-03-10 03:32:29 +08:00
|
|
|
define <vscale x 2 x double> @ldff1d_f64_reg(<vscale x 2 x i1> %pg, double* %a, i64 %offset) {
|
|
|
|
; CHECK-LABEL: ldff1d_f64_reg:
|
|
|
|
; CHECK: ldff1d { z0.d }, p0/z, [x0, x1, lsl #3]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
%base = getelementptr double, double* %a, i64 %offset
|
|
|
|
%load = call <vscale x 2 x double> @llvm.aarch64.sve.ldff1.nxv2f64(<vscale x 2 x i1> %pg, double* %base)
|
|
|
|
ret <vscale x 2 x double> %load
|
|
|
|
}
|
|
|
|
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
declare <vscale x 16 x i8> @llvm.aarch64.sve.ldff1.nxv16i8(<vscale x 16 x i1>, i8*)
|
|
|
|
|
|
|
|
declare <vscale x 8 x i8> @llvm.aarch64.sve.ldff1.nxv8i8(<vscale x 8 x i1>, i8*)
|
|
|
|
declare <vscale x 8 x i16> @llvm.aarch64.sve.ldff1.nxv8i16(<vscale x 8 x i1>, i16*)
|
|
|
|
declare <vscale x 8 x half> @llvm.aarch64.sve.ldff1.nxv8f16(<vscale x 8 x i1>, half*)
|
[AArch64][SVE] Add bfloat16 support to load intrinsics
Summary:
Bfloat16 support added for the following intrinsics:
- LD1
- LD1RQ
- LDNT1
- LDNF1
- LDFF1
Reviewers: sdesmalen, c-rhodes, efriedma, stuij, fpetrogalli, david-arm
Reviewed By: fpetrogalli
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, danielkiss, cfe-commits, llvm-commits
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D82298
2020-06-24 16:47:49 +08:00
|
|
|
declare <vscale x 8 x bfloat> @llvm.aarch64.sve.ldff1.nxv8bf16(<vscale x 8 x i1>, bfloat*)
|
[AArch64][SVE] Add first-faulting load intrinsic
Summary:
Implements the llvm.aarch64.sve.ldff1 intrinsic and DAG
combine rules for first-faulting loads with sign & zero extends
Reviewers: sdesmalen, efriedma, andwar, dancgr, rengolin
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73025
2020-01-23 18:01:36 +08:00
|
|
|
|
|
|
|
declare <vscale x 4 x i8> @llvm.aarch64.sve.ldff1.nxv4i8(<vscale x 4 x i1>, i8*)
|
|
|
|
declare <vscale x 4 x i16> @llvm.aarch64.sve.ldff1.nxv4i16(<vscale x 4 x i1>, i16*)
|
|
|
|
declare <vscale x 4 x i32> @llvm.aarch64.sve.ldff1.nxv4i32(<vscale x 4 x i1>, i32*)
|
|
|
|
declare <vscale x 2 x float> @llvm.aarch64.sve.ldff1.nxv2f32(<vscale x 2 x i1>, float*)
|
|
|
|
declare <vscale x 4 x float> @llvm.aarch64.sve.ldff1.nxv4f32(<vscale x 4 x i1>, float*)
|
|
|
|
|
|
|
|
declare <vscale x 2 x i8> @llvm.aarch64.sve.ldff1.nxv2i8(<vscale x 2 x i1>, i8*)
|
|
|
|
declare <vscale x 2 x i16> @llvm.aarch64.sve.ldff1.nxv2i16(<vscale x 2 x i1>, i16*)
|
|
|
|
declare <vscale x 2 x i32> @llvm.aarch64.sve.ldff1.nxv2i32(<vscale x 2 x i1>, i32*)
|
|
|
|
declare <vscale x 2 x i64> @llvm.aarch64.sve.ldff1.nxv2i64(<vscale x 2 x i1>, i64*)
|
|
|
|
declare <vscale x 2 x double> @llvm.aarch64.sve.ldff1.nxv2f64(<vscale x 2 x i1>, double*)
|
2020-06-26 16:48:53 +08:00
|
|
|
|
|
|
|
; +bf16 is required for the bfloat version.
|
|
|
|
attributes #0 = { "target-features"="+sve,+bf16" }
|