Fix assert when emitting llvm.pow.f86.
authorJames Y Knight <jyknight@google.com>
Fri, 9 Oct 2015 21:36:19 +0000 (21:36 +0000)
committerJames Y Knight <jyknight@google.com>
Fri, 9 Oct 2015 21:36:19 +0000 (21:36 +0000)
commit692e037499087e668aa71b018bf0d8fbbf1e35e9
treeea1b26e110286e21ce1e5cf15361573c651b5ee4
parent935cc537a6fc0af6f053489f80c88befd1d1ae93
Fix assert when emitting llvm.pow.f86.

This occurred due to introducing the invalid i64 type after type
legalization had already finished, in an attempt to workaround bitcast
f64 -> v2i32 not doing constant folding.

The *right* thing is to actually fix bitcast, but that has other
complications. So, for now, just get rid of the broken workaround, and
check in a test-case showing that it doesn't crash, with TODOs for
emitting proper code.

llvm-svn: 249908
llvm/lib/Target/Sparc/SparcISelLowering.cpp
llvm/test/CodeGen/SPARC/float-constants.ll [new file with mode: 0644]