1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /* See https://gitlab.com/qemu-project/qemu/-/issues/2185 */
6 int test_setc(unsigned int x
, unsigned int y
)
8 asm("blsi %1, %0; setc %b0" : "+r"(x
) : "r"(y
));
9 return (unsigned char)x
;
12 int test_pushf(unsigned int x
, unsigned int y
)
14 asm("blsi %1, %0; pushf; pop %q0" : "+r"(x
) : "r"(y
));
20 assert(test_setc(1, 0xedbf530a));
21 assert(test_pushf(1, 0xedbf530a));