[SelectionDAG] Fix lowering of vector geps
authorJon Roelofs <jonathan_roelofs@apple.com>
Wed, 29 Jul 2020 19:14:17 +0000 (13:14 -0600)
committerJon Roelofs <jonathan_roelofs@apple.com>
Thu, 30 Jul 2020 20:56:53 +0000 (14:56 -0600)
commitafae6d97fa55984003321245ec6ceb5af9cc5856
treeeafaf35eda9dfe2143ab97e70b7f726d095af8a9
parent02c1bba67009041a999220f370e81376883d7a65
[SelectionDAG] Fix lowering of vector geps

This fixes an assertion failure that was being triggered in
SelectionDAG::getZeroExtendInReg(), where it was trying to extend the <2xi32>
to i64 (which should have been <2xi64>).

Fixes: rdar://66016901

Differential Revision: https://reviews.llvm.org/D84884
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/test/CodeGen/AArch64/vector-gep.ll [new file with mode: 0644]