Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/execute/pr84169.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
rev | line source |
---|---|
131 | 1 /* PR rtl-optimization/84169 */ |
2 | |
3 #ifdef __SIZEOF_INT128__ | |
4 typedef unsigned __int128 T; | |
5 #else | |
6 typedef unsigned long long T; | |
7 #endif | |
8 | |
9 T b; | |
10 | |
11 static __attribute__ ((noipa)) T | |
12 foo (T c, T d, T e, T f, T g, T h) | |
13 { | |
14 __builtin_mul_overflow ((unsigned char) h, -16, &h); | |
15 return b + h; | |
16 } | |
17 | |
18 int | |
19 main () | |
20 { | |
21 T x = foo (0, 0, 0, 0, 0, 4); | |
22 if (x != -64) | |
23 __builtin_abort (); | |
24 return 0; | |
25 } |