llvm-6502/lib
Bill Schmidt 03b9f9f2b6 [PowerPC 2/4] Little-endian adjustments for VSX insert/extract operations
For little endian, we need to make some straightforward adjustments in
the code expansions for scalar_to_vector and vector_extract of v2f64.
First, scalar_to_vector must place the scalar into vector element
zero.  However, our implementation of SUBREG_TO_REG will place it into
big-element vector element zero (high-order bits), and for little
endian we need it in the low-order bits.  The LE implementation splats
the high-order doubleword into the low-order doubleword.

Second, the meaning of (vector_extract x, 0) and (vector_extract x, 1)
must be reversed for similar reasons.

A new test is added that tests code generation for insertelement and
extractelement for both element 0 and element 1.  It is disabled in
this patch but enabled in patch 4/4, for reasons stated in the test.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223788 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-09 16:43:32 +00:00
..
Analysis InstSimplify: Try to bring back the rest of r223583 2014-12-08 18:30:43 +00:00
AsmParser Reland r223754 2014-12-09 05:56:09 +00:00
Bitcode IR: Disallow function-local metadata attachments 2014-12-06 02:29:44 +00:00
CodeGen [CodeGenPrepare] Split branch conditions into multiple conditional branches. 2014-12-09 16:36:13 +00:00
DebugInfo Make DWARFAcceleratorTable::dump() const. 2014-11-20 16:21:11 +00:00
ExecutionEngine [MCJIT] Unique-ptrify the RTDyldMemoryManager member of MCJIT. NFC. 2014-12-03 00:51:19 +00:00
IR Move function to obtain branch weights into the BranchInst class. NFC. 2014-12-09 16:36:06 +00:00
IRReader Remove unused variable. NFC. 2014-11-06 23:16:57 +00:00
LineEditor
Linker Skip declarations in the case of functions. 2014-12-09 08:20:06 +00:00
LTO Remove StringMap::GetOrCreateValue in favor of StringMap::insert 2014-11-19 05:49:42 +00:00
MC clang-formatted ranged loops and assignment, NFC. 2014-12-04 08:30:39 +00:00
Object Move method out of line to make buildbot happy. 2014-12-09 16:18:11 +00:00
Option Add an overload of getLastArgNoClaim taking two OptSpecifiers. 2014-09-12 19:42:53 +00:00
ProfileData llvm-cov: Sink some reporting logic into CoverageMapping 2014-11-14 01:50:32 +00:00
Support Silence warning: variable 'buffer' set but not used. 2014-12-04 21:36:38 +00:00
TableGen Revert r222957 "Replace std::map<K, V*> with std::map<K, V> to handle ownership and deletion of the values." 2014-11-30 01:20:17 +00:00
Target [PowerPC 2/4] Little-endian adjustments for VSX insert/extract operations 2014-12-09 16:43:32 +00:00
Transforms Move function to obtain branch weights into the BranchInst class. NFC. 2014-12-09 16:36:06 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile