FreeBSD syscall: improve utrace wrapper
[valgrind.git] / none / tests / s390x / fpext_warn.c
blobcc4bd764e062268af817b27a287422b0a6b850d8
1 #include <stdio.h>
2 #include "opcodes.h"
4 /* Test that emulation warnings appear when the floating point
5 extension facility is not installed and the opcode specifies
6 a rounding mode other than 0. */
7 int
8 main(void)
10 printf("before\n");
11 __asm__ volatile ( CEGBRA(1,0,0,0) : : : "cc", "memory");
12 __asm__ volatile ( CEFBRA(3,0,0,0) : : : "cc", "memory");
13 __asm__ volatile ( CDGBRA(4,0,0,0) : : : "cc", "memory");
15 /* Note: an emulation warning is expected for the following
16 insn but none is given. The reason is that at most 3 warnings
17 of a given kind will be issued - and we already had three. */
18 __asm__ volatile ( CEFBRA(5,0,0,0) : : : "cc", "memory");
20 printf("after\n");
21 return 0;