From 777ace12b40fd5825e725d6c5b901b53f84e8031 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Tue, 12 Jun 2018 06:44:53 +0300 Subject: [PATCH] Added test #1890 --- dbms/tests/queries/0_stateless/00646_weird_mmx.reference | 1 + dbms/tests/queries/0_stateless/00646_weird_mmx.sql | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/00646_weird_mmx.reference create mode 100644 dbms/tests/queries/0_stateless/00646_weird_mmx.sql diff --git a/dbms/tests/queries/0_stateless/00646_weird_mmx.reference b/dbms/tests/queries/0_stateless/00646_weird_mmx.reference new file mode 100644 index 00000000000..9cf791085ad --- /dev/null +++ b/dbms/tests/queries/0_stateless/00646_weird_mmx.reference @@ -0,0 +1 @@ +4105 diff --git a/dbms/tests/queries/0_stateless/00646_weird_mmx.sql b/dbms/tests/queries/0_stateless/00646_weird_mmx.sql new file mode 100644 index 00000000000..f4af386c5d8 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00646_weird_mmx.sql @@ -0,0 +1,9 @@ +DROP TABLE IF EXISTS test.weird_mmx; + +CREATE TABLE test.weird_mmx (x Array(UInt64)) ENGINE = TinyLog; +-- this triggers overlapping matches in LZ4 decompression routine; 915 is the minimum number +-- see comment in LZ4_decompression_faster.cpp about usage of MMX registers +INSERT INTO test.weird_mmx SELECT range(number % 10) FROM system.numbers LIMIT 915; +SELECT sum(length(*)) FROM test.weird_mmx; + +DROP TABLE test.weird_mmx;