Displaying 3 results from an estimated 3 matches for "fct4".
Did you mean:
fc4
2020 Sep 01
2
Should llvm optimize 1.0 / x ?
...lang to use vrcpps, but not in
a satisfying way:
clang++ -O3 -march=native -mtune=native \
-Rpass=loop-vectorize -Rpass-missed=loop-vectorize
-Rpass-analysis=loop-vectorize \
-ffast-math -ffp-model=fast -ffp-exception-behavior=ignore -ffp-contract=fast \
-c -o vec.o vec.cc
0000000000000140 <_Z4fct4Dv4_f>:
140: c5 f8 53 c8 vrcpps %xmm0,%xmm1
144: c4 e2 79 18 15 00 00 vbroadcastss 0x0(%rip),%xmm2 # 14d
<_Z4fct4Dv4_f+0xd>
14b: 00 00
14d: c4 e2 71 ac c2 vfnmadd213ps %xmm2,%xmm1,%xmm0
152: c4 e2 71 98 c1 vfmadd132ps %xmm1,%xmm1,%xmm0
157: c3...
2020 Aug 31
2
Should llvm optimize 1.0 / x ?
Hi,
Here is a small C++ program:
vec.cc:
#include <cmath>
using v4f32 = float __attribute__((__vector_size__(16)));
v4f32 fct1(v4f32 x)
{
return 1.0 / x;
}
v4f32 fct2(v4f32 x)
{
return __builtin_ia32_rcpps(x);
}
Which is compiled to:
vec.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <_Z4fct1Dv4_f>:
0: c4 e2 79 18 0d 00 00 vbroadcastss
2005 Mar 29
6
Aggregating data (with more than one function)
I have the data similar to the following in a data frame:
LastName Department Salary
1 Johnson IT 56000
2 James HR 54223
3 Howe Finance 80000
4 Jones Finance 82000
5 Norwood IT 67000
6 Benson Sales 76000
7 Smith Sales 65778
8 Baker HR 56778
9 Dempsey HR 78999
10 Nolan