Skip to content

Commit 70f8877

Browse files
iii-isiddhesh
authored andcommitted
Fix BC_NOT on s390x
The code checks for "== true", but it should rather check for "!= nil && != false". Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
1 parent d29f0fb commit 70f8877

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vm_s390x.dasc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2540,8 +2540,8 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop)
25402540
| lg RB, 0(RD, BASE)
25412541
| srag RB, RB, 47
25422542
| load_false RC
2543-
| cghi RB, LJ_TTRUE
2544-
| je >1
2543+
| clfi RB, LJ_TISTRUECOND
2544+
| jl >1
25452545
| load_true RC
25462546
|1:
25472547
| stg RC, 0(RA, BASE)

0 commit comments

Comments
 (0)