gcc/testsuite/gcc.target/s390/vector/long-double-asm-inout.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O3 -march=z14 -mzarch" } */ |
| 3 | /* { dg-do run { target { s390_z14_hw } } } */ |
| 4 | #include <assert.h> |
| 5 | #include <stdint.h> |
| 6 | |
| 7 | int |
| 8 | main (void) |
| 9 | { |
| 10 | long double res = 0x1.0000000000001p+0L, |
| 11 | exp = 1.00000000000000011102230246251564788e+0L; |
| 12 | asm("sqxbr\t%0,%0" : "+f"(res)); |
| 13 | assert (res == exp); |
| 14 | } |