[llvm] 9fff6e8 - [AArch64][SVE] Add +fullfp16 to sve-vector-splat.ll
Cameron McInally via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 21 08:56:58 PST 2020
Author: Cameron McInally
Date: 2020-02-21T10:56:39-06:00
New Revision: 9fff6e823cf79075d1f386e1e875b73405368620
URL: https://github.com/llvm/llvm-project/commit/9fff6e823cf79075d1f386e1e875b73405368620
DIFF: https://github.com/llvm/llvm-project/commit/9fff6e823cf79075d1f386e1e875b73405368620.diff
LOG: [AArch64][SVE] Add +fullfp16 to sve-vector-splat.ll
Add +fullfp16 to sve-vector-splat.ll so we can test folding of immediates into moves.
This attribute can go away later when SVE has a full set of fp16 patterns in place.
Differential Revision: https://reviews.llvm.org/D74965
Added:
Modified:
llvm/test/CodeGen/AArch64/sve-vector-splat.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/AArch64/sve-vector-splat.ll b/llvm/test/CodeGen/AArch64/sve-vector-splat.ll
index fdb3ee6c066c..dab5405f23c0 100644
--- a/llvm/test/CodeGen/AArch64/sve-vector-splat.ll
+++ b/llvm/test/CodeGen/AArch64/sve-vector-splat.ll
@@ -1,4 +1,4 @@
-; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve < %s | FileCheck %s
+; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve,+fullfp16 < %s | FileCheck %s
;; Splats of legal integer vector types
@@ -190,26 +190,23 @@ define <vscale x 2 x double> @splat_nxv2f64(double %val) {
ret <vscale x 2 x double> %2
}
-; TODO: The f16 constant should be folded into the move.
define <vscale x 8 x half> @splat_nxv8f16_zero() {
; CHECK-LABEL: splat_nxv8f16_zero:
-; CHECK: mov z0.h, h0
+; CHECK: mov z0.h, #0
; CHECK-NEXT: ret
ret <vscale x 8 x half> zeroinitializer
}
-; TODO: The f16 constant should be folded into the move.
define <vscale x 4 x half> @splat_nxv4f16_zero() {
; CHECK-LABEL: splat_nxv4f16_zero:
-; CHECK: mov z0.h, h0
+; CHECK: mov z0.h, #0
; CHECK-NEXT: ret
ret <vscale x 4 x half> zeroinitializer
}
-; TODO: The f16 constant should be folded into the move.
define <vscale x 2 x half> @splat_nxv2f16_zero() {
; CHECK-LABEL: splat_nxv2f16_zero:
-; CHECK: mov z0.h, h0
+; CHECK: mov z0.h, #0
; CHECK-NEXT: ret
ret <vscale x 2 x half> zeroinitializer
}
More information about the llvm-commits
mailing list