aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorJustin Holewinski <justin.holewinski@gmail.com>2011-06-17 12:12:42 +0000
committerJustin Holewinski <justin.holewinski@gmail.com>2011-06-17 12:12:42 +0000
commit3604d9a42197c492105b590b8bb7b99f295d804a (patch)
treea70844de62b7d96dbec7f8b993bdaf649fc9f4ac /llvm/lib/CodeGen/MachineBasicBlock.cpp
parentb2507b3926125100c7e27f95b3abddd0c2a22f5b (diff)
downloadllvm-3604d9a42197c492105b590b8bb7b99f295d804a.zip
llvm-3604d9a42197c492105b590b8bb7b99f295d804a.tar.gz
llvm-3604d9a42197c492105b590b8bb7b99f295d804a.tar.bz2
PTX: Adjust rounding modes
* rounding modes for fp add, mul, sub now use .rn * float -> int rounding correctly uses .rzi not .rni * 32bit fdiv for sm13 uses div.rn (instead of div.approx) * 32bit fdiv for sm10 now uses div (instead of div.approx) Approx is not IEEE 754 compatible (and should be optionally set by a flag to the backend instead). The .rn rounding modifier is the PTX default anyway, but it's better to be explicit. All these modifiers should be available by using __fmul_rz functions for example, but support will need to be added for this in the backend. Patch by Dan Bailey llvm-svn: 133253
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions