Set ISD::FROUND to Expand by default for all types
authorHal Finkel <hfinkel@anl.gov>
Fri, 9 Aug 2013 04:13:44 +0000 (04:13 +0000)
committerHal Finkel <hfinkel@anl.gov>
Fri, 9 Aug 2013 04:13:44 +0000 (04:13 +0000)
commit3d7f79a02e143cfcbc85ea2091f2797285a9db84
tree0684ae7714c91d3aca4697952230746dbed88fe2
parent1c9cd021c8999d9c2c0786dff074d1e75bbd0eb2
Set ISD::FROUND to Expand by default for all types

For most libm ISD nodes, TargetLoweringBase::initActions sets the default
scalar-type action to Expand, and leaves the vector-type action default as
Legal. This is not appropriate for the new ISD::FROUND node (which no backend
but PowerPC handles explicitly).

Fixes PR16842.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188048 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetLoweringBase.cpp
test/CodeGen/X86/vec_round.ll [new file with mode: 0644]