URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [pr47707.C] - Rev 742
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do run } */
/* { dg-options "-O2 -fno-tree-vrp" } */
#include <assert.h>
struct CH
{
unsigned char ch : 3;
} ch;
__attribute__((noinline)) void MakeCheckOp (unsigned int *v1, unsigned int *v2)
{
assert (*v1 == *v2);
}
int main (void)
{
int len;
for (len = 4; len >= 1; len--)
{
unsigned v1, v2;
ch.ch = len;
v1 = ch.ch;
v2 = len;
MakeCheckOp (&v1, &v2);
}
}
Go to most recent revision | Compare with Previous | Blame | View Log