mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[ConstantFold][SVE][NFC] Add test for select instruction in scalable vector.
Side notes from D73669, no need to guard the iteration on vectors, as it is explicitly looking for a ConstantVector/ConstantDataVector, which is not expected to be scalable at the moment. So, add the test only.
This commit is contained in:
parent
8898d47dbb
commit
ac4a5d6e8a
@ -164,3 +164,15 @@ define <vscale x 4 x i32> @xor() {
|
||||
%r = xor <vscale x 4 x i32> undef, undef
|
||||
ret <vscale x 4 x i32> %r
|
||||
}
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Other Operations
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
define <vscale x 4 x i32> @select() {
|
||||
; CHECK-LABEL: @select(
|
||||
; CHECK-NEXT: ret <vscale x 4 x i32> undef
|
||||
;
|
||||
%r = select <vscale x 4 x i1> undef, <vscale x 4 x i32> zeroinitializer, <vscale x 4 x i32> undef
|
||||
ret <vscale x 4 x i32> %r
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user