Files
archived-llvm/test/CodeGen/NVPTX
Bixia Zheng 627d346148 [NVPTX] Fix the codegen for llvm.round.
Summary:
Previously, we translate llvm.round to PTX cvt.rni, which rounds to the
even interger when the source is equidistant between two integers. This
is not correct as llvm.round should round away from zero. This change
replaces llvm.round with a round away from zero implementation through
target specific custom lowering.

Modify a few affected tests to not check for cvt.rni. Instead, we check
for the use of a few constants used in implementing round. We are also
adding CUDA runnable tests to check for the values produced by
llvm.round to test-suites/External/CUDA.

Reviewers: tra

Subscribers: jholewinski, sanjoy, jlebar, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D59947

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357407 91177308-0d34-0410-b5e6-96231b3b80d8
2019-04-01 16:10:26 +00:00
..
2015-07-29 18:59:09 +00:00
2018-07-04 13:28:39 +00:00
2014-06-27 18:35:21 +00:00
2014-06-27 18:36:06 +00:00
2017-05-17 20:18:13 +00:00
2017-05-17 20:18:13 +00:00
2015-06-04 21:28:26 +00:00
2015-06-04 21:28:26 +00:00
2019-01-03 14:11:33 +00:00