1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -passes=vector-combine -S -mtriple=x86_64-- -mattr=-sse | FileCheck %s
4 ; Don't spend time on vector transforms if the target does not support vectors.
6 define <4 x float> @bitcast_shuf_same_size(<4 x i32> %v) {
7 ; CHECK-LABEL: @bitcast_shuf_same_size(
8 ; CHECK-NEXT: [[SHUF:%.*]] = shufflevector <4 x i32> [[V:%.*]], <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
9 ; CHECK-NEXT: [[R:%.*]] = bitcast <4 x i32> [[SHUF]] to <4 x float>
10 ; CHECK-NEXT: ret <4 x float> [[R]]
12 %shuf = shufflevector <4 x i32> %v, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
13 %r = bitcast <4 x i32> %shuf to <4 x float>