diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-06-24 20:48:32 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-06-24 22:10:50 +0300 |
| commit | 422b6c976e28445d2a6e14586fa416b0f16c093f (patch) | |
| tree | a6bf3364cec45ed0c5d48e346a76a98fe9d0094a /ops/addi/gen_addi.sh | |
| download | copyjit-422b6c976e28445d2a6e14586fa416b0f16c093f.tar.gz copyjit-422b6c976e28445d2a6e14586fa416b0f16c093f.zip | |
initial commit
Diffstat (limited to 'ops/addi/gen_addi.sh')
| -rwxr-xr-x | ops/addi/gen_addi.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ops/addi/gen_addi.sh b/ops/addi/gen_addi.sh new file mode 100755 index 0000000..d1e8c78 --- /dev/null +++ b/ops/addi/gen_addi.sh @@ -0,0 +1,7 @@ +for i in $(seq 0 255); do + filename=addi"$i".c + echo "#include \"../common.h\"\n" \ + "DEFINE_OP(addi$i) {" \ + "NEXT_OP(sp, a, x, y, o + $i);" \ + "}" > "$filename" +done |
