blob: 71725ea45581cdda700cfbfac9e08acd160d952a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# euclide's algorithm in ssa
# it is a fairly interesting
# ssa program because of the
# swap of b and a
@start
@loop
%a = phi @start 380, @loop %r
%b = phi @start 747, @loop %a
%r = rem %b, %a
jez %r, @end, @loop
@end
ret
|