[PATCH] D59950: [test-suite,CUDA] Add a test case to test the edge cases for the implementation of llvm.round intrinsic in the PTX backend.
Artem Belevich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 28 19:38:40 PDT 2019
tra accepted this revision.
tra added inline comments.
This revision is now accepted and ready to land.
================
Comment at: External/CUDA/test_round.cu:37
+ // test a value larger than max(float)
+ assert(__builtin_round(3.4e39 + v) == 3.4e39);
+}
----------------
You may want to add a check for a similarly large negative value, too.
Repository:
rT test-suite
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59950/new/
https://reviews.llvm.org/D59950
More information about the llvm-commits
mailing list