[llvm] r373657 - [AArch64][SVE] Move the testcase into CodeGen dir

Jinsong Ji via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 3 13:21:23 PDT 2019


Author: jsji
Date: Thu Oct  3 13:21:23 2019
New Revision: 373657

URL: http://llvm.org/viewvc/llvm-project?rev=373657&view=rev
Log:
[AArch64][SVE] Move the testcase into CodeGen dir

https://reviews.llvm.org/rL373600 added an AArch64 testcase in top dir
which should be moved to Codegen dir.

Added:
    llvm/trunk/test/CodeGen/AArch64/sve-fp.ll

Added: llvm/trunk/test/CodeGen/AArch64/sve-fp.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AArch64/sve-fp.ll?rev=373657&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/AArch64/sve-fp.ll (added)
+++ llvm/trunk/test/CodeGen/AArch64/sve-fp.ll Thu Oct  3 13:21:23 2019
@@ -0,0 +1,25 @@
+; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve < %s | FileCheck %s
+
+define <vscale x 8 x half> @fadd_h(<vscale x 8 x half> %a, <vscale x 8 x half> %b) {
+; CHECK-LABEL: fadd_h:
+; CHECK: fadd z0.h, z0.h, z1.h
+; CHECK-NEXT: ret
+  %res = fadd <vscale x 8 x half> %a, %b
+  ret <vscale x 8 x half> %res
+}
+
+define <vscale x 4 x float> @fadd_s(<vscale x 4 x float> %a, <vscale x 4 x float> %b) {
+; CHECK-LABEL: fadd_s:
+; CHECK: fadd z0.s, z0.s, z1.s
+; CHECK-NEXT: ret
+  %res = fadd <vscale x 4 x float> %a, %b
+  ret <vscale x 4 x float> %res
+}
+
+define <vscale x 2 x double> @fadd_d(<vscale x 2 x double> %a, <vscale x 2 x double> %b) {
+; CHECK-LABEL: fadd_d:
+; CHECK: fadd z0.d, z0.d, z1.d
+; CHECK-NEXT: ret
+  %res = fadd <vscale x 2 x double> %a, %b
+  ret <vscale x 2 x double> %res
+}




More information about the llvm-commits mailing list