re PR middle-end/26729 (bad bitops folding)

PR middle-end/26729
	* gcc.dg/pr26729-1.c: New test case.

From-SVN: r113764
This commit is contained in:
Roger Sayle 2006-05-14 17:20:01 +00:00 committed by Roger Sayle
parent 56106c2ed0
commit faf32f4aa5
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-05-14 Roger Sayle <roger@eyesopen.com>
PR middle-end/26729
* gcc.dg/pr26729-1.c: New test case.
2006-05-13 Zdenek Dvorak <dvorakz@suse.cz>
* gcc.dg/pr27003.c: New test.

View File

@ -0,0 +1,16 @@
/* { dg-do run } */
/* { dg-options "-O2" } */
void abort(void);
__attribute__((noinline))
int f (unsigned short word) {
return (word & 0x1) && (((unsigned short) (word & 0x8000)) == 0x8000);
}
int main(void) {
if (!f(0x8001))
abort();
return 0;
}