Lines Matching +full:llvm +full:- +full:3
1 ; RUN: opt -cost-model -analyze -mtriple=amdgcn-unknown-amdhsa < %s | FileCheck %s
4 ; CHECK: estimated cost of 0 for {{.*}} call float @llvm.fabs.f32
7 %fabs = call float @llvm.fabs.f32(float %vec) #1
13 ; CHECK: estimated cost of 0 for {{.*}} call <2 x float> @llvm.fabs.v2f32
16 %fabs = call <2 x float> @llvm.fabs.v2f32(<2 x float> %vec) #1
22 ; CHECK: estimated cost of 0 for {{.*}} call <3 x float> @llvm.fabs.v3f32
23 define void @fabs_v3f32(<3 x float> addrspace(1)* %out, <3 x float> addrspace(1)* %vaddr) #0 {
24 %vec = load <3 x float>, <3 x float> addrspace(1)* %vaddr
25 %fabs = call <3 x float> @llvm.fabs.v3f32(<3 x float> %vec) #1
26 store <3 x float> %fabs, <3 x float> addrspace(1)* %out
31 ; CHECK: estimated cost of 0 for {{.*}} call double @llvm.fabs.f64
34 %fabs = call double @llvm.fabs.f64(double %vec) #1
40 ; CHECK: estimated cost of 0 for {{.*}} call <2 x double> @llvm.fabs.v2f64
43 %fabs = call <2 x double> @llvm.fabs.v2f64(<2 x double> %vec) #1
49 ; CHECK: estimated cost of 0 for {{.*}} call <3 x double> @llvm.fabs.v3f64
50 define void @fabs_v3f64(<3 x double> addrspace(1)* %out, <3 x double> addrspace(1)* %vaddr) #0 {
51 %vec = load <3 x double>, <3 x double> addrspace(1)* %vaddr
52 %fabs = call <3 x double> @llvm.fabs.v3f64(<3 x double> %vec) #1
53 store <3 x double> %fabs, <3 x double> addrspace(1)* %out
58 ; CHECK: estimated cost of 0 for {{.*}} call half @llvm.fabs.f16
61 %fabs = call half @llvm.fabs.f16(half %vec) #1
67 ; CHECK: estimated cost of 0 for {{.*}} call <2 x half> @llvm.fabs.v2f16
70 %fabs = call <2 x half> @llvm.fabs.v2f16(<2 x half> %vec) #1
76 ; CHECK: estimated cost of 0 for {{.*}} call <3 x half> @llvm.fabs.v3f16
77 define void @fabs_v3f16(<3 x half> addrspace(1)* %out, <3 x half> addrspace(1)* %vaddr) #0 {
78 %vec = load <3 x half>, <3 x half> addrspace(1)* %vaddr
79 %fabs = call <3 x half> @llvm.fabs.v3f16(<3 x half> %vec) #1
80 store <3 x half> %fabs, <3 x half> addrspace(1)* %out
84 declare float @llvm.fabs.f32(float) #1
85 declare <2 x float> @llvm.fabs.v2f32(<2 x float>) #1
86 declare <3 x float> @llvm.fabs.v3f32(<3 x float>) #1
88 declare double @llvm.fabs.f64(double) #1
89 declare <2 x double> @llvm.fabs.v2f64(<2 x double>) #1
90 declare <3 x double> @llvm.fabs.v3f64(<3 x double>) #1
92 declare half @llvm.fabs.f16(half) #1
93 declare <2 x half> @llvm.fabs.v2f16(<2 x half>) #1
94 declare <3 x half> @llvm.fabs.v3f16(<3 x half>) #1