Skip to content

Commit

Permalink
Arm-m4 large stack: more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eponier authored and vbgl committed Jun 13, 2024
1 parent 49371a3 commit 94e8249
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
param int N = 65536;
require "sub_reg_ptr_template.jinc"
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
export fn main () -> reg u32 {
stack u32[N] s;
reg ptr u32[N] r;
reg ptr u32[1] r2;
reg u32 n i res;

i = 0;
res = 0;
n = N;
while (i < n) {
s[i] = res;
}
r = s;
r2 = r[N-1:1];
res = r2[0];

return res;
}

0 comments on commit 94e8249

Please sign in to comment.