projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0bc1c6
)
extended version
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Wed, 17 Oct 2007 15:21:20 +0000
(15:21 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Wed, 17 Oct 2007 15:21:20 +0000
(15:21 +0000)
[r16252]
ir/be/test/fehler96.c
patch
|
blob
|
history
diff --git
a/ir/be/test/fehler96.c
b/ir/be/test/fehler96.c
index
4e08f83
..
11fb151
100644
(file)
--- a/
ir/be/test/fehler96.c
+++ b/
ir/be/test/fehler96.c
@@
-2,7
+2,15
@@
int shrs1(unsigned x) {
return -(x >> 31);
}
+int shr1(int x) {
+ return -(x >> 31);
+}
+
int main(void)
{
printf("%d (should be -1)\n", shrs1(-3));
+ printf("%d (should be 1)\n", shr1(-3));
+ printf("%d (should be 0)\n", shrs1(3));
+ printf("%d (should be 0)\n", shr1(3));
+ return 0;
}