Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / TI-constants-lra.c
blobcc52a62182b67eb2eb0868b28964375fec539a8e
1 /* { dg-do compile { target int128 } } */
2 /* { dg-options "-O3" } */
4 /* 2x lghi */
5 __int128 a() {
6 return 0;
9 /* 2x lghi */
10 __int128 b() {
11 return -1;
14 /* 2x lghi */
15 __int128 c() {
16 return -2;
19 /* lghi + llilh */
20 __int128 d() {
21 return 16000 << 16;
24 /* lghi + llihf */
25 __int128 e() {
26 return (unsigned long long)80000 << 32;
29 /* lghi + llihf */
30 __int128 f() {
31 return (unsigned __int128)80000 << 96;
34 /* llihf + llihf - this is handled via movti_bigconst pattern */
35 __int128 g() {
36 return ((unsigned __int128)80000 << 96) | ((unsigned __int128)80000 << 32);
39 /* Literal pool */
40 __int128 h() {
41 return ((unsigned __int128)80000 << 32) | 1;
44 /* Literal pool */
45 __int128 i() {
46 return (((unsigned __int128)80000 << 32) | 1) << 64;