aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIra Rosen <ira.rosen@linaro.org>2011-09-20 06:30:19 +0000
committerIra Rosen <irar@gcc.gnu.org>2011-09-20 06:30:19 +0000
commitf0f6b204a8d1d5030ca6461a378afdd6cb058b39 (patch)
tree8f7c4955e78adb85a42f4f07b0eb0e6e3405d54b /gcc
parent77d1f6824960ac5073f4c137842b129188aad42f (diff)
downloadgcc-f0f6b204a8d1d5030ca6461a378afdd6cb058b39.zip
gcc-f0f6b204a8d1d5030ca6461a378afdd6cb058b39.tar.gz
gcc-f0f6b204a8d1d5030ca6461a378afdd6cb058b39.tar.bz2
slp-pr50413.cc: Don't run the test.
* g++.dg/vect/slp-pr50413.cc: Don't run the test. Remove main () and get_bit (). From-SVN: r178999
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/vect/slp-pr50413.cc22
2 files changed, 6 insertions, 21 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index aa7ddc5..a5b3577 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2011-09-20 Ira Rosen <ira.rosen@linaro.org>
+
+ * g++.dg/vect/slp-pr50413.cc: Don't run the test. Remove main ()
+ and get_bit ().
+
2011-09-19 Ian Bolton <ian.bolton@arm.com>
* gcc.dg/20100906-1.c: Use -fno-short-enums option for
diff --git a/gcc/testsuite/g++.dg/vect/slp-pr50413.cc b/gcc/testsuite/g++.dg/vect/slp-pr50413.cc
index 5a8c82a..e7bdf1f 100644
--- a/gcc/testsuite/g++.dg/vect/slp-pr50413.cc
+++ b/gcc/testsuite/g++.dg/vect/slp-pr50413.cc
@@ -1,3 +1,4 @@
+/* { dg-do compile } */
/* { dg-require-effective-target vect_int } */
typedef unsigned long long UInt64;
@@ -150,12 +151,6 @@ UInt128_BITMAP;
UInt128_BITMAP V;
-template<typename CAST>
-unsigned char get_bit(CAST value, unsigned char pos)
-{
- return ( value & (static_cast<CAST>(1) << pos) ) != 0;
-}
-
void shift(unsigned char t)
{
V.uint128.uint64_lower = (V.uint128.uint64_lower >> 1);
@@ -165,21 +160,6 @@ void shift(unsigned char t)
V.bitmap.b96 = t;
}
-int main()
-{
- V.uint128.uint64_lower = 0;
- V.uint128.uint64_upper = 0xd4004001;
-
- UInt64 Kc = 0xDD1A1B8A8A5C2400;
-
- for (int i = 0; i < 64; i++ )
- {
- shift( get_bit( Kc, i) );
- }
-
- return 0;
-}
-
/* { dg-final { scan-tree-dump-times "basic block vectorized using SLP" 0 "slp" } } */
/* { dg-final { cleanup-tree-dump "slp" } } */