1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00
llvm-mirror/test/CodeGen/AArch64/sve-bad-select.ll
David Sherwood 149631f346 [SVE] Fix warnings in SelectInst::areInvalidOperands
We should be comparing the element counts rather than the
numbers of elements.

Differential Revision: https://reviews.llvm.org/D80634
2020-05-29 07:50:47 +01:00

11 lines
490 B
LLVM

; RUN: not llc -mtriple=aarch64-linux-gnu -mattr=+sve < %s 2>&1 | FileCheck %s
define <vscale x 16 x i8> @badsel1_nxv16i8(<16 x i1> %p,
<vscale x 16 x i8> %dst,
<vscale x 16 x i8> %a) {
%sel = select <16 x i1> %p, <vscale x 16 x i8> %a, <vscale x 16 x i8> %dst
ret <vscale x 16 x i8> %sel
}
; CHECK: error: vector select requires selected vectors to have the same vector length as select condition