aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/builtins
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-08-30 19:23:24 +0200
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-08-30 19:23:24 +0200
commit9a19f2fdf735785947cc469d2ceef83cbe4f1679 (patch)
treed734cdfe6273f4593dd8ee0d9c4a9f7ff54b9225 /test/monniaux/builtins
parentcaac487ae23a9785602cf235f5b4a2b6749f2c18 (diff)
downloadcompcert-kvx-9a19f2fdf735785947cc469d2ceef83cbe4f1679.tar.gz
compcert-kvx-9a19f2fdf735785947cc469d2ceef83cbe4f1679.zip
fma with first negated operand
Diffstat (limited to 'test/monniaux/builtins')
-rw-r--r--test/monniaux/builtins/fma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/monniaux/builtins/fma.c b/test/monniaux/builtins/fma.c
index 0952e8f3..18513502 100644
--- a/test/monniaux/builtins/fma.c
+++ b/test/monniaux/builtins/fma.c
@@ -8,5 +8,6 @@ int main(int argc, char **argv) {
double y = strtod(argv[2], NULL);
double z = strtod(argv[3], NULL);
printf("%g %g %g\n", __builtin_fma(x, y, z), fma(x, y, z), x*y + z);
+ printf("%g %g %g\n", __builtin_fma(-x, y, z), fma(-x, y, z), (-x)*y + z);
return 0;
}