[Codegen] Adjust saturation test. NFC.
[llvm-core.git] / test / CodeGen / X86 / asm-reject-vk32-vk64.ll
blob12d148a3a74b6d1298f1855217993cb7a8498e52
1 ; RUN: not llc -o /dev/null %s -mtriple=x86_64-unknown-unknown -mattr=avx512f 2>&1 | FileCheck %s
2 ; RUN: not llc -o /dev/null %s -mtriple=i386-unknown-unknown -mattr=avx512f 2>&1 | FileCheck %s
4 ; CHECK: error: couldn't allocate input reg for constraint 'Yk'
5 define <8 x i64> @mask_Yk_i32(i32 %msk, <8 x i64> %x, <8 x i64> %y) {
6 entry:
7   %0 = tail call <8 x i64> asm "vpaddw\09$3, $2, $0 {$1}", "=x,^Yk,x,x,~{dirflag},~{fpsr},~{flags}"(i32 %msk, <8 x i64> %x, <8 x i64> %y)
8   ret <8 x i64> %0
11 ; CHECK: error: couldn't allocate input reg for constraint 'Yk'
12 define <8 x i64> @mask_Yk_i64(i64 %msk, <8 x i64> %x, <8 x i64> %y) {
13 entry:
14   %0 = tail call <8 x i64> asm "vpaddb\09$3, $2, $0 {$1}", "=x,^Yk,x,x,~{dirflag},~{fpsr},~{flags}"(i64 %msk, <8 x i64> %x, <8 x i64> %y)
15   ret <8 x i64> %0
18 ; CHECK: error: couldn't allocate output register for constraint 'k'
19 define i32 @k_wise_op_i32(i32 %msk_src1, i32 %msk_src2) {
20 entry:
21   %0 = tail call i32 asm "kandd\09$2, $1, $0", "=k,k,k,~{dirflag},~{fpsr},~{flags}"(i32 %msk_src1, i32 %msk_src2)
22   ret i32 %0
25 ; CHECK: error: couldn't allocate output register for constraint 'k'
26 define i64 @k_wise_op_i64(i64 %msk_src1, i64 %msk_src2) {
27 entry:
28   %0 = tail call i64 asm "kandq\09$2, $1, $0", "=k,k,k,~{dirflag},~{fpsr},~{flags}"(i64 %msk_src1, i64 %msk_src2)
29   ret i64 %0