2015-08-06 13:08:31 -04:00
|
|
|
# counts up from -1988 to 1991
|
2015-08-05 11:37:10 -04:00
|
|
|
|
2016-03-28 10:30:55 -04:00
|
|
|
export
|
2015-09-18 12:27:50 -04:00
|
|
|
function $test() {
|
2015-09-14 18:06:29 -04:00
|
|
|
@start
|
|
|
|
@loop
|
2015-08-06 16:35:17 -04:00
|
|
|
%n0 =l phi @start -1988, @loop %n1
|
|
|
|
%n1 =l add 1, %n0
|
2016-02-11 20:02:31 -05:00
|
|
|
%cmp =w cslel 1991, %n1
|
2015-08-07 16:01:07 -04:00
|
|
|
jnz %cmp, @end, @loop
|
2015-09-14 18:06:29 -04:00
|
|
|
@end
|
2015-08-05 11:37:10 -04:00
|
|
|
ret
|
2015-09-07 22:11:43 -04:00
|
|
|
}
|
2016-03-02 22:11:50 -05:00
|
|
|
|
|
|
|
# >>> driver
|
2016-03-03 11:55:13 -05:00
|
|
|
# extern void test(void);
|
2016-03-02 22:11:50 -05:00
|
|
|
# int main() { test(); return 0; }
|
|
|
|
# <<<
|