1 ; RUN: opt < %s -instcombine -S -o - | FileCheck %s
4 define i32 @a(<4 x i64> %I) {
6 ; CHECK-NOT: trunc <4 x i64>
7 %J = trunc <4 x i64> %I to <4 x i32>
8 %K = extractelement <4 x i32> %J, i32 3
9 ; CHECK: extractelement <4 x i64>
17 define i32 @b(<4 x float> %I) {
19 ; CHECK-NOT: fptosi <4 x float>
20 %J = fptosi <4 x float> %I to <4 x i32>
21 %K = extractelement <4 x i32> %J, i32 3
22 ; CHECK: extractelement <4 x float>