summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/pr28472.ll
blob: f58a01b48aa99f53b5fe3067db79318ac7e58081 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s

define float @same_dynamic_index_fp_vector_type(float %val, i32 %idx) {
; CHECK-LABEL: same_dynamic_index_fp_vector_type:
; CHECK:       # %bb.0: # %bb
; CHECK-NEXT:    retq
bb:
  %tmp0 = insertelement <4 x float> undef, float %val, i32 %idx
  %tmp1 = extractelement <4 x float> %tmp0, i32 %idx
  ret float %tmp1
}
OpenPOWER on IntegriCloud