aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr70314.c
blob: 181d2b4b9e26bf611e59ab7efab82092af5f1ad2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-march=skylake-avx512 -O2" } */
/* { dg-final { scan-assembler-times "cmp\[dq\]" 2 } } */
/* { dg-final { scan-assembler-not "and" } } */

typedef long vec __attribute__((vector_size(16)));
vec f(vec x, vec y){
  return (x < 5) & (y < 8);
}

/* On x86_64, currently
	vpcmpq	$2, .LC1(%rip), %xmm1, %k1
	vpcmpq	$2, .LC0(%rip), %xmm0, %k0{%k1}
	vpmovm2q	%k0, %xmm0
*/