mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[VectorCombine] add test for x86 target with SSE disabled; NFC
This commit is contained in:
parent
40e668f84c
commit
575e40e45d
12
test/Transforms/VectorCombine/X86/no-sse.ll
Normal file
12
test/Transforms/VectorCombine/X86/no-sse.ll
Normal file
@ -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> <i32 3, i32 2, i32 1, i32 0>
|
||||
; CHECK-NEXT: ret <4 x float> [[R]]
|
||||
;
|
||||
%shuf = shufflevector <4 x i32> %v, <4 x i32> undef, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
|
||||
%r = bitcast <4 x i32> %shuf to <4 x float>
|
||||
ret <4 x float> %r
|
||||
}
|
Loading…
Reference in New Issue
Block a user