benchtests: Add fmax/fmin benchmarks
commit5d1f604a87214e133d0adf9dbd53891138b5276c
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 16 Dec 2016 19:10:58 +0000 (16 19:10 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 19 Dec 2016 18:04:16 +0000 (19 16:04 -0200)
tree72dbeed71129a6bcae48aaf2445f3f4e10723c03
parentb598e134773f7ac981b9407982714cf7d53877ee
benchtests: Add fmax/fmin benchmarks

This patch adds fmax and fmin benchtests.  It is based math/s_fmax_template.c
implementation which checks for basically four different classes:

  1. if x is greater or equal than y.
  2. if x is less than y.
  3. if x or y is signaling.
  4. if y is nan.

Cases 1 and 2 are used for default input number (by mixing normal double
numbers and infinity), while case 3 and 4 are used each for on for a
benchmark class.

Checked on x86_64-linux-gnu and powerpc64-linux-gnu.

* benchtests/Makefile (bench-math): Add fmin and fmax.
(CFLAGS-bench-fmax.c): New rule.
(CFLAGS-bench-fmin.c): New rule.
* benchtests/fmax-inputs: New file.
* benchtests/fmin-inputs: Likewise.
ChangeLog
benchtests/Makefile
benchtests/fmax-inputs [new file with mode: 0644]
benchtests/fmin-inputs [new file with mode: 0644]