Skip to content

Commit 22f2485

Browse files
authored
Merge pull request #6730 from dotty-staging/fix-6710
Follow up to #6722: make dead code consistent in handling NaN
2 parents 5a53ca7 + 919397c commit 22f2485

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/src/dotty/tools/backend/jvm/BCodeBodyBuilder.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,12 +1267,12 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
12671267
emit(asm.Opcodes.LCMP)
12681268
case FLOAT =>
12691269
emit(asm.Opcodes.FCONST_0)
1270-
if (op == LT || op == LE) emit(asm.Opcodes.FCMPG)
1271-
else emit(asm.Opcodes.FCMPL)
1270+
if (op == LT || op == LE) emit(asm.Opcodes.FCMPL)
1271+
else emit(asm.Opcodes.FCMPG)
12721272
case DOUBLE =>
12731273
emit(asm.Opcodes.DCONST_0)
1274-
if (op == LT || op == LE) emit(asm.Opcodes.DCMPG)
1275-
else emit(asm.Opcodes.DCMPL)
1274+
if (op == LT || op == LE) emit(asm.Opcodes.DCMPL)
1275+
else emit(asm.Opcodes.DCMPG)
12761276
}
12771277
bc.emitIF(op, success)
12781278
}

0 commit comments

Comments
 (0)