Index: lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp =================================================================== --- lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp +++ lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp @@ -3835,7 +3835,7 @@ } LdOps.push_back(L); - + LdOp = L; LdWidth -= NewVTWidth; } Index: test/CodeGen/X86/pr34653.ll =================================================================== --- /dev/null +++ test/CodeGen/X86/pr34653.ll @@ -0,0 +1,10 @@ +; RUN: llc %s -O0 -mattr=+avx512f + +declare fastcc <38 x double> @test() + +define void @main() { +entry: + %v = call fastcc <38 x double> @test() + %v.0 = extractelement <38 x double> %v, i32 0 + ret void +}