From 2b893b8ade25b64511b565c5029caf967d691d93 Mon Sep 17 00:00:00 2001 From: Ken Gorab Date: Sun, 24 Nov 2024 20:50:15 -0500 Subject: [PATCH] Using qbe fork 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. --- .github/workflows/release.yml | 2 +- .github/workflows/selfhost.yml | 2 +- projects/compiler/example.abra | 15 +-------------- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0861324e..e5fdcace 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/selfhost.yml b/.github/workflows/selfhost.yml index 762e063c..4a1f77f2 100644 --- a/.github/workflows/selfhost.yml +++ b/.github/workflows/selfhost.yml @@ -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 diff --git a/projects/compiler/example.abra b/projects/compiler/example.abra index 624a0819..537af5cf 100644 --- a/projects/compiler/example.abra +++ b/projects/compiler/example.abra @@ -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) \ No newline at end of file