diff options
Diffstat (limited to 'data/accumulator.rtl')
-rw-r--r-- | data/accumulator.rtl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/data/accumulator.rtl b/data/accumulator.rtl new file mode 100644 index 0000000..a6b528c --- /dev/null +++ b/data/accumulator.rtl @@ -0,0 +1,18 @@ +main() { + 16: x9 = 1 + 15: int32[stack(0)] = x9 + 14: x8 = 2 + 13: int32[stack(4)] = x8 + 12: x7 = 3 + 11: int32[stack(8)] = x7 + 10: x3 = 0 + 9: nop + 8: x1 = 0 + 7: x6 = stack(0) (int) + 6: x5 = int32[x6 + x1 * 4 + 0] + 5: x3 = x3 + x5 + 0 (int) + 4: x1 = x1 + 1 (int) + 3: if (x1 <s 3) goto 7 else goto 2 + 2: x4 = x3 + 1: return x4 +} |