1 /* PR optimization/11864
2 * Reporter: Kazumoto Kojima <kkojima@gcc.gnu.org>
3 * Summary: [3.3/3.4 regression] miscompiles zero extension and test
5 * gcc-3.3/3.4 -O2 for sh target may miscompile the combination of zero extension
6 * and test if it's zero.
8 * Testcase tweaked by dank@kegel.com. Not marked as xfail because it's a regression.
11 /* { dg-options "-O2" } */
13 extern void abort(void);
22 unsigned char a[1] = {0,0};
32 a[0] = 1 + (f() & 127);