aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/ArrayRefTest.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2022-12-23 13:11:28 -0500
committerMatt Arsenault <Matthew.Arsenault@amd.com>2023-01-10 14:45:23 -0500
commit2ad4c3c88d884684a3efb42181e87fe305df51bd (patch)
tree09da72d26aa3145be9b6f521d23221579bbaabb3 /llvm/unittests/ADT/ArrayRefTest.cpp
parent10410534696e1922cbed56b229d123b2db4acd8e (diff)
downloadllvm-2ad4c3c88d884684a3efb42181e87fe305df51bd.zip
llvm-2ad4c3c88d884684a3efb42181e87fe305df51bd.tar.gz
llvm-2ad4c3c88d884684a3efb42181e87fe305df51bd.tar.bz2
clang: Fix handling of __builtin_elementwise_copysign
I realized the handling of copysign made no sense at all. Only the type of the first operand should really matter, and it should not perform a conversion between them. Also fixes misleading errors and producing broken IR for integers. We could accept different FP types for the sign argument, if the intrinsic permitted different types like the DAG node. As it is we would need to insert a cast, which could have other effects (like trapping on snan) which should not happen for a copysign.
Diffstat (limited to 'llvm/unittests/ADT/ArrayRefTest.cpp')
0 files changed, 0 insertions, 0 deletions