From 89a7f64afc7968ef3337472d02f7e08681f1766e Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Wed, 12 Aug 2020 09:15:11 -0400 Subject: [PATCH] [VectorCombine] add test for x86 target with SSE disabled; NFC --- llvm/test/Transforms/VectorCombine/X86/no-sse.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 llvm/test/Transforms/VectorCombine/X86/no-sse.ll diff --git a/llvm/test/Transforms/VectorCombine/X86/no-sse.ll b/llvm/test/Transforms/VectorCombine/X86/no-sse.ll new file mode 100644 index 0000000..ccf0e0d --- /dev/null +++ b/llvm/test/Transforms/VectorCombine/X86/no-sse.ll @@ -0,0 +1,12 @@ +; RUN: opt < %s -vector-combine -S -mtriple=x86_64-- -mattr=-sse | FileCheck %s --check-prefixes=CHECK + +define <4 x float> @bitcast_shuf_same_size(<4 x i32> %v) { +; CHECK-LABEL: @bitcast_shuf_same_size( +; CHECK-NEXT: [[TMP1:%.*]] = bitcast <4 x i32> [[V:%.*]] to <4 x float> +; CHECK-NEXT: [[R:%.*]] = shufflevector <4 x float> [[TMP1]], <4 x float> undef, <4 x i32> +; CHECK-NEXT: ret <4 x float> [[R]] +; + %shuf = shufflevector <4 x i32> %v, <4 x i32> undef, <4 x i32> + %r = bitcast <4 x i32> %shuf to <4 x float> + ret <4 x float> %r +} -- 2.7.4