mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
5d1f604a87
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.
24 lines
455 B
Plaintext
24 lines
455 B
Plaintext
## includes: math.h
|
|
## args: double:double
|
|
## ret: double
|
|
78.5, -78.5
|
|
-78.5, 78.5
|
|
0, 78.5
|
|
78.5, 0
|
|
0, -78.5
|
|
-78.5, 0
|
|
__builtin_inf (), 78.5
|
|
__builtin_inf (), -78.5
|
|
78.5, __builtin_inf ()
|
|
-78.5, __builtin_inf ()
|
|
## name: qNaN
|
|
__builtin_nan (""), 78.5
|
|
__builtin_nan (""), -78.5
|
|
78.5, __builtin_nan ("")
|
|
-78.5, __builtin_nan ("")
|
|
## name: sNaN
|
|
__builtin_nans (""), 78.5
|
|
__builtin_nans (""), -78.5
|
|
78.5, __builtin_nans ("")
|
|
-78.5, __builtin_nans ("")
|