projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7ed2da
)
more tests added
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 13 Sep 2007 19:01:01 +0000
(19:01 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 13 Sep 2007 19:01:01 +0000
(19:01 +0000)
[r15794]
ir/be/test/localopts.c
patch
|
blob
|
history
diff --git
a/ir/be/test/localopts.c
b/ir/be/test/localopts.c
index
6a10aad
..
b706626
100644
(file)
--- a/
ir/be/test/localopts.c
+++ b/
ir/be/test/localopts.c
@@
-99,6
+99,14
@@
int add1(int x) {
return x + ~x;
}
+int shr1(int x) {
+ return -(x >> 31);
+}
+
+int shrs1(unsigned x) {
+ return -(x >> 31);
+}
+
int main(void)
{
#define TU(func,x,expect) \
@@
-130,4
+138,6
@@
int main(void)
TB(and1, 42, 17, 42);
TB(and2, 42, 17, 42^17);
TU(add1, -3, -1);
+ TU(shr1, -3, 1);
+ TU(shrs1, -3, -1);
}