You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using simplify with LLVM-14 seems to run into some issues in some cases. Had a simplify fail with "IteNode::init(): Must take either two logical nodes or two bv nodes as 'then' and 'else' branches.".
Reduced the LLVM asm code that was produced by simplify to following code that still triggers it:
(code is non sensical, since I removed most that didn't matter)
define i32 @__triton(i8 %SymVar_4, i32 %SymVar_7) local_unnamed_addr #0 {
entry:
%0 = and i8 %SymVar_4, 63
%1 = xor i8 %0, 3
%2 = zext i32 %SymVar_7 to i64
%3 = and i64 %2, 2048
%4 = icmp ne i64 %3, 0
%5 = icmp ne i8 %1, 1
%6 = select i1 %5, i1 %4, i1 false
%7 = zext i1 %6 to i32
ret i32 %7
}
It fails on the '%6' line, operand(1) has isLogical() true, while operand(2) false.
Using simplify with LLVM-14 seems to run into some issues in some cases. Had a simplify fail with "IteNode::init(): Must take either two logical nodes or two bv nodes as 'then' and 'else' branches.".
Reduced the LLVM asm code that was produced by simplify to following code that still triggers it:
(code is non sensical, since I removed most that didn't matter)
It fails on the '%6' line, operand(1) has isLogical() true, while operand(2) false.
Test cpp program to trigger it:
The text was updated successfully, but these errors were encountered: