projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
indentation fixed
[libfirm]
/
ir
/
be
/
test
/
wrong_cmp.c
1
#include <stdio.h>
2
3
#define MASK 0x00000020
4
5
int ctrl_space_write ()
6
{
7
unsigned int reg_offset = 160;
8
9
if ((reg_offset & MASK) == MASK)
10
{
11
return 1;
12
}
13
14
return (0);
15
}
16
17
int main (void)
18
{
19
int res = ctrl_space_write();
20
printf("Result: %d (should be 1)\n", res);
21
return res == 1 ? 0 : 1;
22
}