2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr79568-2.c
bloba0ee8e9213919b85ae240aabf86cf4166a3cafe8
1 /* PR target/79568 */
2 /* { dg-do compile { target lp64 } } */
3 /* { dg-options "-mno-lwp" } */
5 #pragma GCC push_options
6 #pragma GCC target ("lwp")
7 void
8 foo (unsigned long x, unsigned int y)
10 __builtin_ia32_lwpval64 (x, y, 1);
12 #pragma GCC pop_options
14 void
15 bar (unsigned long x, unsigned int y)
17 __builtin_ia32_lwpval64 (x, y, 1); /* { dg-error "needs isa option" } */