; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 6 ; RUN: opt < %s -passes=vector-combine -S | FileCheck %s --check-prefixes=CHECK ; The test verifies that the optimization accepts and does not modify the instructions. define void @test() #0 { ; CHECK-LABEL: define void @test() #0 { ; CHECK-NEXT: [[V1:%.*]] = shufflevector <5 x i16> zeroinitializer, <5 x i16> poison, <10 x i32> zeroinitializer ; CHECK-NEXT: [[V2:%.*]] = bitcast <10 x i16> [[V1]] to <4 x i40> ; CHECK-NEXT: call void @use.vec(<4 x i40> [[V2]]) ; CHECK-NEXT: ret void ; %S = shufflevector <5 x i16> zeroinitializer, <5 x i16> poison, <10 x i32> zeroinitializer %bc = bitcast <10 x i16> %S to <4 x i40> call void @use.vec(<4 x i40> %bc) ret void } declare void @use.vec(<4 x i40>) attributes #0 = { strictfp }