1 #include <stdio.h>
2 #include "opcodes.h"
3 
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
main(void)8 main(void)
9 {
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");
14 
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");
19 
20    printf("after\n");
21    return 0;
22 }
23