aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-06-24 22:13:39 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-06-24 22:13:39 +0000
commit257d48d22cadb5677b1be4a756b5bc74f286139b (patch)
treea8e73efc0ab8383bbcf8fffa4807b5954a758130 /clang/lib/Frontend/InitPreprocessor.cpp
parent6008924508d0c8fdb82ff338a13d073a0650a51c (diff)
downloadllvm-257d48d22cadb5677b1be4a756b5bc74f286139b.zip
llvm-257d48d22cadb5677b1be4a756b5bc74f286139b.tar.gz
llvm-257d48d22cadb5677b1be4a756b5bc74f286139b.tar.bz2
R600: Fix inconsistency in rsq instructions.
R600 was using a clamped version of rsq, but SI was not. Add a new rsq_clamped intrinsic and use them consistently. It's unclear to me from the documentation what behavior the R600 instructions have, so I assume they have the legacy behavior described by the SI documents. For R600, use RECIPSQRT_IEEE for both llvm.AMDGPU.rsq.legacy and llvm.AMDGPU.rsq. R600 also has RECIPSQRT_FF, which I'm not sure how it fits in here. llvm-svn: 211637
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions