]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
IR_MIN/IR_MAX is non-commutative due to underlying FPU ops.
authorMike Pall <mike>
Sun, 17 Sep 2023 08:31:00 +0000 (10:31 +0200)
committerMike Pall <mike>
Sun, 17 Sep 2023 08:31:00 +0000 (10:31 +0200)
Thanks to Peter Cawley. #1082

src/lj_ir.h

index b32bd0957c6fc5c35c6b600db270dd854d879bdc..dbfba258c8f693478122dac4ccc436e3f67c7d95 100644 (file)
@@ -76,8 +76,8 @@
   \
   _(ABS,       N , ref, ref) \
   _(LDEXP,     N , ref, ref) \
-  _(MIN,       C , ref, ref) \
-  _(MAX,       C , ref, ref) \
+  _(MIN,       N , ref, ref) \
+  _(MAX,       N , ref, ref) \
   _(FPMATH,    N , ref, lit) \
   \
   /* Overflow-checking arithmetic ops. */ \