Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.c-torture / execute / bitfld-4.c
blob6f7d7e25c2f9c9695117f1506a2ef05613818629
1 /* When comparisons of bit-fields to unsigned constants got shortened,
2 the shortened signed constant was wrongly marked as overflowing,
3 leading to a later integer_zerop failure and misoptimization.
5 Related to bug tree-optimization/16437 but shows the problem on
6 32-bit systems. */
7 /* Origin: Joseph Myers <jsm@polyomino.org.uk> */
9 extern void abort (void);
11 struct s { int a:12, b:20; };
13 struct s x = { -123, -456 };
15 int
16 main (void)
18 if (x.a != -123U || x.b != -456U)
19 abort ();
20 return 0;