From eaa1a368d2690df82d93aa2bc10042307f17feec Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Mon, 27 Nov 2023 13:04:02 -0800 Subject: [PATCH] ... oh, this is already tested above actually. --- tests/Compiler.test.cpp | 4 +--- tests/conformance/vector.lua | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/Compiler.test.cpp b/tests/Compiler.test.cpp index 14e2e3c8..4abf4a7c 100644 --- a/tests/Compiler.test.cpp +++ b/tests/Compiler.test.cpp @@ -7850,12 +7850,10 @@ TEST_CASE("ArithRevK") { ScopedFastFlag sff("LuauCompileRevK", true); - // - and / have special optimized form for reverse constants - // in the future, + and * will likely get compiled to ADDK/MULK + // - and / have special optimized form for reverse constants; in the future, + and * will likely get compiled to ADDK/MULK // other operators are not important enough to optimize reverse constant forms for CHECK_EQ("\n" + compileFunction0(R"( local x: number = unknown - return 2 + x, 2 - x, 2 * x, 2 / x, 2 % x, 2 // x, 2 ^ x )"), R"( diff --git a/tests/conformance/vector.lua b/tests/conformance/vector.lua index 04cd657e..c9cc47aa 100644 --- a/tests/conformance/vector.lua +++ b/tests/conformance/vector.lua @@ -64,8 +64,6 @@ end assert(vector(1, 2, 4) / 8 == vector(1/8, 1/4, 1/2)); assert(vector(1, 2, 4) / (1 / val) == vector(1/8, 2/8, 4/8)); assert(vector(1, 2, 4) / '8' == vector(1/8, 1/4, 1/2)); -assert(vector(1, 2, 4) / 8 == vector(1/8, 1/4, 1/2)); -assert(1 / vector(1, 2, 4) == vector(1, 1/2, 1/4)); assert(-vector(1, 2, 4) == vector(-1, -2, -4));