brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · c75f266 Raw
25 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py2; RUN: opt -mtriple=aarch64-- -mattr=+sve -passes="print<cost-model>" -cost-kind=all 2>&1 -disable-output < %s | FileCheck %s3 4target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"5 6declare <vscale x 2 x double> @llvm.sqrt.v2f64(<vscale x 2 x double>)7 8define <vscale x 2 x double> @fadd_v2f64(<vscale x 2 x double> %a, <vscale x 2 x double> %b) {9; CHECK-LABEL: 'fadd_v2f64'10; CHECK-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:3 SizeLat:1 for: %r = fadd <vscale x 2 x double> %a, %b11; CHECK-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <vscale x 2 x double> %r12;13  %r = fadd <vscale x 2 x double> %a, %b14  ret <vscale x 2 x double> %r15}16 17define <vscale x 2 x double> @sqrt_v2f64(<vscale x 2 x double> %a) {18; CHECK-LABEL: 'sqrt_v2f64'19; CHECK-NEXT:  Cost Model: Found costs of 2 for: %r = call <vscale x 2 x double> @llvm.sqrt.nxv2f64(<vscale x 2 x double> %a)20; CHECK-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <vscale x 2 x double> %r21;22  %r = call <vscale x 2 x double> @llvm.sqrt.v2f64(<vscale x 2 x double> %a)23  ret <vscale x 2 x double> %r24}25