1 ; Verify ReplaceExtractVectorEltOfLoadWithNarrowedLoad fixes
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
5 ; Test a case where a vector extraction can be simplified to a scalar load.
6 ; The index must be extended from i32 to i64.
7 define i32 @f1(ptr %ptr, i32 %index) {
9 ; CHECK: risbgn {{%r[0-5]}}, %r3, 60, 189, 2
12 %vec = load <4 x i32>, ptr %ptr
13 %res = extractelement <4 x i32> %vec, i32 %index