PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr70858.c
blob99d7877346c14d1b1a2286fc6bc034ee44593d75
1 /* PR target/70858 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -mlwp -mbmi -mtbm -mbmi2 -std=gnu11" } */
5 void
6 f1 (unsigned long long x, unsigned int y)
8 __builtin_ia32_lwpval64 (x, y, 1); /* { dg-warning "implicit declaration of function .__builtin_ia32_lwpval64." "" { target ia32 } } */
11 char
12 f2 (unsigned long long x, unsigned int y)
14 return __builtin_ia32_lwpins64 (x, y, 1); /* { dg-warning "implicit declaration of function .__builtin_ia32_lwpins64." "" { target ia32 } } */
17 unsigned long long
18 f3 (unsigned long long x, unsigned long long y)
20 return __builtin_ia32_bextr_u64 (x, y); /* { dg-warning "implicit declaration of function .__builtin_ia32_bextr_u64." "" { target ia32 } } */
23 unsigned long long
24 f4 (unsigned long long x)
26 return __builtin_ia32_bextri_u64 (x, 1); /* { dg-warning "implicit declaration of function .__builtin_ia32_bextri_u64." "" { target ia32 } } */
29 unsigned long long
30 f5 (unsigned long long x, unsigned long long y)
32 return __builtin_ia32_bzhi_di (x, y); /* { dg-warning "implicit declaration of function .__builtin_ia32_bzhi_di." "" { target ia32 } } */
35 unsigned long long
36 f6 (unsigned long long x, unsigned long long y)
38 return __builtin_ia32_pdep_di (x, y); /* { dg-warning "implicit declaration of function .__builtin_ia32_pdep_di." "" { target ia32 } } */
41 unsigned long long
42 f7 (unsigned long long x, unsigned long long y)
44 return __builtin_ia32_pext_di (x, y); /* { dg-warning "implicit declaration of function .__builtin_ia32_pext_di." "" { target ia32 } } */