Skip to content

Fix RISC-V backend tests and update the flake#40

Merged
mengzhuo merged 1 commit intoplctlab:mainfrom
DzmingLi:main
Oct 15, 2025
Merged

Fix RISC-V backend tests and update the flake#40
mengzhuo merged 1 commit intoplctlab:mainfrom
DzmingLi:main

Conversation

@DzmingLi
Copy link

  1. Add short-circuit logical operators (Cexpr_and/Cexpr_or)

    • Implement proper short-circuit evaluation using conditional branches
    • AND: if lhs then rhs else false
    • OR: if lhs then true else rhs
  2. Add T_bytes support in fixedarray operations

    • Handle Bytes as FixedArray[Byte] in Pfixedarray_get_item
    • Fixes "bad type in fixedarray_get_item" error
  3. Add EverySingleElem support for FixedArray literals

    • Implement Pfixedarray_make with EverySingleElem kind
    • Enables array literals like [1, 2, 3, 4, 5]
    • Allocates buffer with length prefix and stores all elements
  4. Fix list01/list02 recursive method calls

    • Update deprecated syntax: length(tail) → tail.length()
    • Update deprecated syntax: get(tail, i-1) → tail.get(i-1)
    • Fixes "value identifier unbound" errors
  5. Update flake to automatically bundle the required core

  6. **Update README **

    • Add RISC-V testing guide.
    • Modify nix develop guide.

1. **Add short-circuit logical operators (Cexpr_and/Cexpr_or)**
   - Implement proper short-circuit evaluation using conditional branches
   - AND: if lhs then rhs else false
   - OR: if lhs then true else rhs

2. **Add T_bytes support in fixedarray operations**
   - Handle Bytes as FixedArray[Byte] in Pfixedarray_get_item
   - Fixes "bad type in fixedarray_get_item" error

3. **Add EverySingleElem support for FixedArray literals**
   - Implement Pfixedarray_make with EverySingleElem kind
   - Enables array literals like [1, 2, 3, 4, 5]
   - Allocates buffer with length prefix and stores all elements

4. **Fix list01/list02 recursive method calls**
   - Update deprecated syntax: length(tail) → tail.length()
   - Update deprecated syntax: get(tail, i-1) → tail.get(i-1)
   - Fixes "value identifier unbound" errors

5. **Update flake to automatically bundle the required core**

6. **Update README **
   - Add RISC-V testing guide.
   - Modify nix develop guide.
@mengzhuo mengzhuo merged commit fc13b3b into plctlab:main Oct 15, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants