From 0358f3d86acfd1ccf9dc8d283cb251c56f351730 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 22 Sep 2017 17:14:16 -0400 Subject: [PATCH] Filter: Update shifting tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- .../tools/filtering/test_valid_filter | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/tests/regression/tools/filtering/test_valid_filter b/tests/regression/tools/filtering/test_valid_filter index 319204ccf..725d82d4a 100755 --- a/tests/regression/tools/filtering/test_valid_filter +++ b/tests/regression/tools/filtering/test_valid_filter @@ -24,8 +24,8 @@ STATS_BIN="$TESTDIR/utils/babelstats.pl" SESSION_NAME="valid_filter" NR_ITER=100 NUM_GLOBAL_TESTS=2 -NUM_UST_TESTS=1074 -NUM_KERNEL_TESTS=1008 +NUM_UST_TESTS=1098 +NUM_KERNEL_TESTS=1032 NUM_TESTS=$(($NUM_UST_TESTS+$NUM_KERNEL_TESTS+$NUM_GLOBAL_TESTS)) source $TESTDIR/utils/utils.sh @@ -706,6 +706,18 @@ UST_FILTERS=( true_statement "-1==~0" + true_statement # unsigned bitwise ops + "~0>>4==0x0fffffffffffffff" + + has_no_event + "1<<-1" + + has_no_event + "1<<10000" + + true_statement # comparator is signed, shift is unsigned + "(1<<63) < 0" + true_statement "1<<1==2" # C99 operator priority: comparator before bitwise @@ -1167,6 +1179,18 @@ KERNEL_FILTERS=( true_statement "-1==~0" + true_statement # unsigned bitwise ops + "~0>>4==0x0fffffffffffffff" + + has_no_event + "1<<-1" + + has_no_event + "1<<10000" + + true_statement # comparator is signed, shift is unsigned + "(1<<63) < 0" + true_statement "1<<1==2" # C99 operator priority: comparator before bitwise -- 2.34.1