diff options
author | rodri <rgl@antares-labs.eu> | 2023-11-24 12:08:15 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2023-11-24 12:08:15 +0000 |
commit | 9404d16a4263a87559af64bfb18c91ccebaa601d (patch) | |
tree | 0a17daf278b3656042a35e1227b665bc87dbf992 /main.c | |
parent | d8ab83e060bf9bb6b1d51915d63578a6dc8cacaf (diff) | |
download | amd64-simd-9404d16a4263a87559af64bfb18c91ccebaa601d.tar.gz amd64-simd-9404d16a4263a87559af64bfb18c91ccebaa601d.tar.bz2 amd64-simd-9404d16a4263a87559af64bfb18c91ccebaa601d.zip |
fix the 9 asm notes. add VFMA231[SP]D instructions.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -9,6 +9,7 @@ double dppd3(Point3, Point3); Point2 Pt2b(double, double, double); Point3 xvec3(Point3, Point3); double hsubpd(double, double); +double fma(double, double, double); double fmin(double a, double b) @@ -78,5 +79,10 @@ main(int argc, char *argv[]) t1 = nanosec(); print("crossvec3(%V, %V) = %V\ttook %lludns\n", p0t, p1t, pr, t1-t0); + t0 = nanosec(); + r = fma(a, b, 21); + t1 = nanosec(); + print("fma(%g, %g, 21) = %g\ttook %lludns\n", a, b, r, t1-t0); + exits(nil); } |