HomePhabricator

Set trunc store action to Expand for all X86 targets.

Authored by bob.wilson on Sep 8 2014, 6:13 PM.

Description

Set trunc store action to Expand for all X86 targets.

When compiling without SSE2, isTruncStoreLegal(F64, F32) would return Legal, whereas with SSE2 it would return Expand. And since the Target doesn't seem to actually handle a truncstore for double -> float, it would just output a store of a full double in the space for a float hence overwriting other bits on the stack.

Patch by Luqman Aden!

llvm-svn: 217410

Details

Committed
bob.wilsonSep 8 2014, 6:13 PM
Parents
rG4ce63c2a54d5: [mach-o] Fix so no options causes usage message to be printed
Branches
Unknown
Tags
Unknown