xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/pr28472.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1; RUN: llc -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s
2
3; CHECK-LABEL: {{^}}same_dynamic_index_fp_vector_type:
4; CHECK: # BB#0:
5; CHECK-NEXT: retq
6define float @same_dynamic_index_fp_vector_type(float %val, i32 %idx) {
7bb:
8  %tmp0 = insertelement <4 x float> undef, float %val, i32 %idx
9  %tmp1 = extractelement <4 x float> %tmp0, i32 %idx
10  ret float %tmp1
11}
12