GCC Bugzilla – Attachment 16012 Details for
Bug 28632
VRP should understand bitwise OR and AND
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Testcase to be added to testsuite
pr28632.c (text/x-csrc), 1.24 KB, created by
Denis Vlasenko
on 2008-08-04 11:55:17 UTC
(
hide
)
Description:
Testcase to be added to testsuite
Filename:
MIME Type:
Creator:
Denis Vlasenko
Created:
2008-08-04 11:55:17 UTC
Size:
1.24 KB
patch
obsolete
>void v4 (unsigned a, unsigned b) >{ > if (a < 0x1000) return; > if (a > 0x1000) return; > if (b < 0x0110) return; >#if defined __OPTIMIZE__ > /* VRP must figure out that this is always true. */ > if (!__builtin_constant_p ((a|b) >= 0x01000)) > asm("the.bug.is.here"); > /* VRP must not think that this is always true. */ > if (__builtin_constant_p ((a|b) >= 0x10000)) > asm("the.bug.is.here"); >#endif >} > >void u4 (unsigned n) >{ > if (n > 0x10111) return; > if (n < 0x10101) return; >#if defined __OPTIMIZE__ > /* VRP must figure out that this is always true. */ > if (!__builtin_constant_p (n & 0x00100)) > asm("the.bug.is.here"); > /* VRP must not think that this is always true. */ > if (__builtin_constant_p (n & 0x00001)) > asm("the.bug.is.here"); > /* Another case to test: > (n & 0x01000) is never true, but we can't figure it out yet. */ >#endif >} > > >void v5 (int a, int b) >{ > if (a < 0x1000) return; > if (a > 0x1000) return; > if (b < 0x0110) return; >#if defined __OPTIMIZE__ > /* VRP must figure out that this is always true. */ > if (!__builtin_constant_p ((a|b) >= 0x01000)) > asm("the.bug.is.here"); > /* VRP must not think that this is always true. */ > if (__builtin_constant_p ((a|b) >= 0x10000)) > asm("the.bug.is.here"); >#endif >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 28632
:
12035
|
12036
|
12067
|
16009
|
16010
|
16011
|
16012
|
16050
|
16113
|
16114
|
18044
|
21156
|
21162