Debian Codegraph @

gcc/testsuite/gcc.target/s390/vector/long-double-asm-commutative.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, x = 40., y = 2.;
11 asm("lxr\t%0,%1\n"
12 "\taxbr\t%0,%2"
13 : "=&f"(res)
14 : "%f"(x), "f"(y));
15 assert (res == 42.);
16 }