[nac3standalone 32-bit error] ./lists.py: Bad LLVM codegen #473

Closed
opened 2024-07-21 16:03:02 +08:00 by lyken · 0 comments
Collaborator

(Requires #468)
(Error found by https://git.m-labs.hk/lyken/misc/src/branch/main/nac3/find_anomalies.py)

How to reproduce

Go to nac3standalone/demo and do:

cargo build && ./run_demo.sh --debug -s 32 src/lists.py

Problem

Bad LLVM codegen:

thread 'codegen-worker-module0' panicked at /home/dosh/m-labs/nac3/nac3core/src/codegen/mod.rs:378:13:
Both operands to a binary operator are not of the same type!
  %125 = mul i32 %124, i64 ptrtoint (i32* getelementptr (i32, i32* null, i32 1) to i64), !dbg !23
Both operands to a binary operator are not of the same type!
  %128 = mul i32 %127, i64 ptrtoint (i32* getelementptr (i32, i32* null, i32 1) to i64), !dbg !23
Both operands to a binary operator are not of the same type!
  %172 = mul i32 %171, i64 ptrtoint (i32* getelementptr (i32, i32* null, i32 1) to i64), !dbg !25
(Requires https://git.m-labs.hk/M-Labs/nac3/pulls/468) (Error found by https://git.m-labs.hk/lyken/misc/src/branch/main/nac3/find_anomalies.py) ## How to reproduce Go to `nac3standalone/demo` and do: ``` cargo build && ./run_demo.sh --debug -s 32 src/lists.py ``` ## Problem Bad LLVM codegen: ``` thread 'codegen-worker-module0' panicked at /home/dosh/m-labs/nac3/nac3core/src/codegen/mod.rs:378:13: Both operands to a binary operator are not of the same type! %125 = mul i32 %124, i64 ptrtoint (i32* getelementptr (i32, i32* null, i32 1) to i64), !dbg !23 Both operands to a binary operator are not of the same type! %128 = mul i32 %127, i64 ptrtoint (i32* getelementptr (i32, i32* null, i32 1) to i64), !dbg !23 Both operands to a binary operator are not of the same type! %172 = mul i32 %171, i64 ptrtoint (i32* getelementptr (i32, i32* null, i32 1) to i64), !dbg !25 ```
sb10q closed this issue 2024-08-14 17:39:45 +08:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nac3#473
No description provided.