c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr92398.h
blob5a4a8bcab80218efc7652c0fd478a14990fbd4bd
1 /* This test code is included into pr92398.p9-.c and pr92398.p9+.c.
2 The two files have the tests for the number of instructions generated for
3 P9- versus P9+.
5 store generates difference instructions as below:
6 P9+: mtvsrdd;xxlnot;stxv.
7 P8/P7/P6 LE: not;not;std;std.
8 P8 BE: mtvsrd;mtvsrd;xxpermdi;xxlnor;stxvd2x.
9 P7/P6 BE: std;std;addi;lxvd2x;xxlnor;stxvd2x.
10 P9+ and P9- LE are expected, P6/P7/P8 BE are unexpected. */
12 void
13 bar (__int128_t *dst, __int128_t src)
15 *dst = ~src;