diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2018-05-14 23:23:24 -0700 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-06-27 16:29:14 +0000 |
commit | 10e5ec25576eea821f2c767e62d00f80e9a01c94 (patch) | |
tree | af1962f2e25dfdec81b3cc83d4f51ba3d57ad72c /tests/auto/corelib/tools/qbytearray | |
parent | cd64a96b31f57e522ab8d29c8357acf384012ebe (diff) |
QByteArray: implement qstricmp with SSE 4.1
Using SSE 4.1 because of the need for PMINUB.
Change-Id: Ib48364abee9f464c96c6fffd152ebd3f8ea7fe94
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests/auto/corelib/tools/qbytearray')
-rw-r--r-- | tests/auto/corelib/tools/qbytearray/tst_qbytearray.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/corelib/tools/qbytearray/tst_qbytearray.cpp b/tests/auto/corelib/tools/qbytearray/tst_qbytearray.cpp index a6ab49a004..ecfa331141 100644 --- a/tests/auto/corelib/tools/qbytearray/tst_qbytearray.cpp +++ b/tests/auto/corelib/tools/qbytearray/tst_qbytearray.cpp @@ -860,6 +860,12 @@ void tst_QByteArray::qstricmp() } QCOMPARE(actual, expected); + actual = ::qstricmp("012345679abcd" + str1.toLatin1(), "012345679AbCd" + str2.toLatin1()); + if ( actual != 0 ) { + actual = (actual < 0 ? -1 : 1); + } + QCOMPARE(actual, expected); + actual = str1.toLatin1().compare(str2.toLatin1(), Qt::CaseInsensitive); if ( actual != 0 ) { actual = (actual < 0 ? -1 : 1); |