================
@@ -1,483 +1,328 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
UTC_ARGS: --version 6
-; RUN: llc < %s -mtriple=aarch64 | FileCheck %s --check-prefixes=CHECK,CHECK-SD
-; RUN: llc < %s -mtriple=aarch64 -global-isel | FileCheck %s
--check-prefixes=CHECK,CHECK-GI
+; RUN: llc < %s -mtriple=aarch64 -mattr=+fullfp16 -O2 | FileCheck %s
--check-prefixes=CHECK,SD,SD-FP16
+; RUN: llc < %s -mtriple=aarch64 -O2 | FileCheck %s
--check-prefixes=CHECK,SD,SD-NOFP16
+; RUN: llc < %s -mtriple=aarch64 -O2 -mattr=+fullfp16 -global-isel
-global-isel-abort=2 2>&1 | FileCheck %s --check-prefixes=CHECK,GI,GI-FP16
+; RUN: llc < %s -mtriple=aarch64 -O2 -global-isel -global-isel-abort=2 2>&1 |
FileCheck %s --check-prefixes=CHECK,GI,GI-NOFP16
+; The canonical form uses <i32 0, i32 poison, i32 poison, ... > for the zero
vector operand
+; We use equivalent zeroinitializer for testing instead which has no
functional change
-define <2 x double> @testv2f64_0(<2 x double> noundef %vec) {
-; CHECK-SD-LABEL: testv2f64_0:
-; CHECK-SD: // %bb.0: // %entry
-; CHECK-SD-NEXT: mov v0.d[1], xzr
-; CHECK-SD-NEXT: ret
+define <2 x double> @testv2f64(<2 x double> noundef %vec) {
+; SD-LABEL: testv2f64:
+; SD: // %bb.0: // %entry
+; SD-NEXT: mov v0.d[1], xzr
+; SD-NEXT: ret
;
-; CHECK-GI-LABEL: testv2f64_0:
-; CHECK-GI: // %bb.0: // %entry
-; CHECK-GI-NEXT: movi d1, #0000000000000000
-; CHECK-GI-NEXT: mov v1.d[1], v1.d[0]
-; CHECK-GI-NEXT: mov v0.d[1], v1.d[1]
-; CHECK-GI-NEXT: ret
+; GI-LABEL: testv2f64:
+; GI: // %bb.0: // %entry
+; GI-NEXT: movi v1.2d, #0000000000000000
+; GI-NEXT: zip1 v0.2d, v0.2d, v1.2d
+; GI-NEXT: ret
entry:
- %vecinit1 = shufflevector <2 x double> %vec, <2 x double> <double poison,
double 0.000000e+00>, <2 x i32> <i32 0, i32 3>
+ %vecinit1 = shufflevector <2 x double> %vec, <2 x double> zeroinitializer,
<2 x i32> <i32 0, i32 2>
----------------
CarolineConcatto wrote:
I dont think we should change these tests.
https://github.com/llvm/llvm-project/pull/237259
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits