diff --git a/test/LuaJIT-tests/CMakeLists.txt b/test/LuaJIT-tests/CMakeLists.txt index 019762e025..d29bcb6e22 100644 --- a/test/LuaJIT-tests/CMakeLists.txt +++ b/test/LuaJIT-tests/CMakeLists.txt @@ -62,6 +62,14 @@ if(CMAKE_C_FLAGS MATCHES "-march=skylake-avx512") list(APPEND LUAJIT_TEST_TAGS_EXTRA +avx512) endif() +if(LUAJIT_ENABLE_TABLE_BUMP) + # Test verifies that the bytecode is unchanged + # for the prototype with the recorded trace. Table bump + # optimization changes the TNEW/TDUP bytecodes, so skip the test + # in that case. + list(APPEND LUAJIT_TEST_TAGS_EXTRA +table_bump) +endif() + set(TEST_SUITE_NAME "LuaJIT-tests") # XXX: The call produces both test and target diff --git a/test/LuaJIT-tests/lib/string/dump.lua b/test/LuaJIT-tests/lib/string/dump.lua index 216c6eb8bf..9c29ac5063 100644 --- a/test/LuaJIT-tests/lib/string/dump.lua +++ b/test/LuaJIT-tests/lib/string/dump.lua @@ -1,6 +1,6 @@ local loadstring = loadstring or load -do --- Must unpatch modified bytecode with ILOOP/JLOOP etc. +do --- Must unpatch modified bytecode with ILOOP/JLOOP etc. -table_bump local function foo() local t = {} for i=1,100 do t[i] = i end