llvm-6502/unittests/VMCore
Duncan Sands 117feba971 Teach getCastOpcode about element-by-element vector casts. For example, "trunc"
can be used to turn a <4 x i64> into a <4 x i32> but getCastOpcode would assert
if you passed these types to it.  Note that this strictly extends the previous
functionality: if getCastOpcode previously accepted two vector types (i.e. didn't
assert) then it still will and returns the same opcode (BitCast).  That's because
before it would only accept vectors with the same bitwidth, and the new code only
touches vectors with the same length.  However if two vectors have both the same
bitwidth and the same length then their element types have the same bitwidth, so
the new logic will return BitCast as before.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131530 91177308-0d34-0410-b5e6-96231b3b80d8
2011-05-18 07:13:41 +00:00
..
ConstantsTest.cpp fix PR8867: a crash handling fp128. Thanks to Nick for the testcase. 2010-12-29 01:33:36 +00:00
DerivedTypesTest.cpp Strip trailing whitespace. 2011-03-31 09:58:51 +00:00
InstructionsTest.cpp Teach getCastOpcode about element-by-element vector casts. For example, "trunc" 2011-05-18 07:13:41 +00:00
Makefile Call doInitialization(), releaseMemory(), and doFinalization() for on-the-fly passes as well. 2009-06-29 18:49:09 +00:00
MetadataTest.cpp PR9214: Convert Metadata API to use ArrayRef. 2011-04-21 19:59:31 +00:00
PassManagerTest.cpp Strip trailing whitespace. 2011-03-31 09:58:51 +00:00
ValueMapTest.cpp Don't include Operator.h from InstrTypes.h. 2011-04-11 09:35:34 +00:00
VerifierTest.cpp Allow unnamed_addr on declarations. 2011-01-15 08:15:00 +00:00