[llvm-commits] [PATCH] Fix PR13220

Duncan Sands baldrick at free.fr
Thu Jul 12 00:18:36 PDT 2012


Hi Michael,
> Please review the attached patch fixing PR13220. With this patch, the
> test case in PR13220 is passed as well as 'make check-all'. Test cases
> are included in this patch.

it is legal for EXTRACT_VECTOR_ELT to return a wider type than the input
vector element type.  Here's the doc from ISDOpcodes.h:

     /// EXTRACT_VECTOR_ELT(VECTOR, IDX) - Returns a single element from VECTOR
     /// identified by the (potentially variable) element number IDX.  If the
     /// return type is an integer type larger than the element type of the
     /// vector, the result is extended to the width of the return type.
     EXTRACT_VECTOR_ELT,

So if this is causing crashes then the bug is probably somewhere else, in some
code that isn't expecting this.

Ciao, Duncan.



More information about the llvm-commits mailing list