fix two bugs in isel

This commit is contained in:
Quentin Carbonneaux 2015-08-06 13:08:31 -04:00
parent e5983ba1a2
commit 2482f4dbbb
5 changed files with 11 additions and 6 deletions

View file

@ -1,10 +1,10 @@
# counts up
# counts up from -1988 to 1991
@start
@loop
%n0 =w phi @start -1988, @loop %n1
%n1 =w add 1, %n0
%cmp =w csle 1990, %n1
%cmp =w csle 1991, %n1
jez %cmp, @loop, @end
@end
ret