OSDN Git Service

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)
commit84477d139097de85c5d33053da2f8772ed0ef80b
tree0886008537514c1d1ee3a0ddf38c1fc007e71679
parentcfb92b1bfd788e4be23adc491c4867728f71707d
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249908 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Sparc/SparcISelLowering.cpp
test/CodeGen/SPARC/float-constants.ll [new file with mode: 0644]