Skip to content

Commit

Permalink
Using qbe fork
Browse files Browse the repository at this point in the history
Update release and selfhost build scripts to use my qbe fork, which
updates the technique for swapping two registers on aarch64 to avoid the
use of the `x18` register, which had introduced UB due to it being a
reserved platform register.
  • Loading branch information
kengorab committed Nov 25, 2024
1 parent f70e27f commit 2b893b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
uses: actions/checkout@v4
- name: Install QBE
run: |
git clone https://github.com/kengorab/qbe-mirror
git clone -b fork --single-branch https://github.com/kengorab/qbe-mirror
mv qbe-mirror qbe
cd qbe
make
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/selfhost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v2
- name: Install QBE
run: |
git clone https://github.com/kengorab/qbe-mirror
git clone -b fork --single-branch https://github.com/kengorab/qbe-mirror
mv qbe-mirror qbe
cd qbe
make
Expand Down
15 changes: 1 addition & 14 deletions projects/compiler/example.abra
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
// val str: String? = None

// println(str?.isEmpty())

// println("a s d f".split(by: " "))
// println("asdf".split())

val arr = [1, 2, 3, 4]

/// Expect: [1, 2, 2, 3, 3, 3, 4, 4, 4, 4]
val arr2 = arr.flatMap(i => Array.fill(i, i))
println(arr2)
println(arr2.length)
println(arr2)
println(1)

0 comments on commit 2b893b8

Please sign in to comment.