summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/coreutils
AgeCommit message (Expand)Author
2013-03-22coreutils: disable ACL as we do not depend on itMarcin Juszkiewicz
2013-02-08coreutils: remove dependency on coreutils-nativeJesse Zhang
2013-01-15coreutils: fix license segment md5sum boundaryMarko Lindqvist
2012-12-13coreutils_6.9: Update the older coreutils to no longer provide 'su'Mark Hatle
2012-12-03coreutils: fix license segment md5sum boundaryMarko Lindqvist
2012-11-02recipes-core: replace virtclass-native(sdk) with class-native(sdk)Robert Yang
2012-08-21coreutils: fix to build with acl supportJackie Huang
2012-07-17coreutils: Fix build with eglibc 2.16Khem Raj
2012-06-15coreutils: Fix a typo in v6.9 (bracket not braket)Andrei Gherzan
2012-05-30coreutils: use new update-alternativesMark Hatle
2012-05-25coreutils-native-6.9: fix build with automake 1.12Nitin A Kamble
2011-12-24coreutils: ensure --color works so DEPEND on libcapSaul Wold
2011-12-13coreutils: Add SRC_URI Checksums for GPLv2Saul Wold
2011-12-01coreutils: fix u-a for base64, mktemp and dfMartin Jansa
2011-11-01coreutils: Add missing PR bumpRichard Purdie
2011-10-27Give coreutils a chance to build the df utilityJulian Pidancet
2011-10-24coreutils: Upgrade recipe 8.12 -> 8.14Khem Raj
2011-08-05coreutils: Fix build on uclibcKhem Raj
2011-07-04coreutils: Upgrade from 8.9 to 8.12Mei Lei
2011-06-14coreutils: remove unnecessary dependency on perlDexuan Cui
2011-05-13update patch upstream statusQing He
2011-04-04coreutils_6.9.bb: Remove gettext from DEPENDSKhem Raj
2011-03-23coreutils: Switch to disabling gmp supportTom Rini
2011-03-23Various: Switch to using GNU_MIRRORTom Rini
2011-03-18coreutils-6.9: fix man page building for the gplv2 recipeNitin A Kamble
2011-02-07coreutils: Add various bug fixesMark Hatle
2011-01-21coreutils: upgrade to version 8.9Qing He
2010-12-09SRC_URI Checksums AdditionalsSaul Wold
2010-10-11recipes-core: Cleanup package descriptions and summariesMark Hatle
2010-09-01packages: Separate out most of the remaining packages into recipesRichard Purdie
'>22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
2012-01-18  Michael Hope  <michael.hope@linaro.org>

	Backport from mainline r183126:

	2012-01-12  Ira Rosen  <irar@il.ibm.com>

	gcc/
	PR tree-optimization/51799
	* tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
	that the last operation is a type demotion.

	gcc/testsuite/
	* gcc.dg/vect/pr51799.c: New test.
	* gcc.dg/vect/vect-widen-shift-u8.c: Expect two widening shift
	patterns.

=== added file 'gcc/testsuite/gcc.dg/vect/pr51799.c'
--- old/gcc/testsuite/gcc.dg/vect/pr51799.c	1970-01-01 00:00:00 +0000
+++ new/gcc/testsuite/gcc.dg/vect/pr51799.c	2012-01-18 01:53:19 +0000
@@ -0,0 +1,18 @@
+/* { dg-do compile } */
+
+typedef signed char int8_t;
+typedef unsigned char uint8_t;
+typedef signed short int16_t;
+typedef unsigned long uint32_t;
+void
+f0a (uint32_t * __restrict__ result, int8_t * __restrict__ arg1,
+     uint32_t * __restrict__ arg4, int8_t temp_6)
+{
+  int idx;
+  for (idx = 0; idx < 416; idx += 1)
+    {
+      result[idx] = (uint8_t)(((arg1[idx] << 7) + arg4[idx]) * temp_6);
+    }
+}
+
+/* { dg-final { cleanup-tree-dump "vect" } } */

=== modified file 'gcc/testsuite/gcc.dg/vect/vect-widen-shift-u8.c'
--- old/gcc/testsuite/gcc.dg/vect/vect-widen-shift-u8.c	2011-10-23 13:33:07 +0000
+++ new/gcc/testsuite/gcc.dg/vect/vect-widen-shift-u8.c	2012-01-18 01:53:19 +0000
@@ -59,7 +59,6 @@
   return 0;
 }
 
-/* { dg-final { scan-tree-dump-times "vect_recog_widen_shift_pattern: detected" 1 "vect" { target vect_widen_shift } } } */
+/* { dg-final { scan-tree-dump-times "vect_recog_widen_shift_pattern: detected" 2 "vect" { target vect_widen_shift } } } */
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
 /* { dg-final { cleanup-tree-dump "vect" } } */
-

=== modified file 'gcc/tree-vect-patterns.c'
--- old/gcc/tree-vect-patterns.c	2011-12-20 07:47:44 +0000
+++ new/gcc/tree-vect-patterns.c	2012-01-18 01:53:19 +0000
@@ -1224,13 +1224,15 @@
     {
       use_lhs = gimple_assign_lhs (use_stmt);
       use_type = TREE_TYPE (use_lhs);
-      /* Support only type promotion or signedess change.  Check that USE_TYPE
-        is not bigger than the original type.  */
+      /* Support only type demotion or signedess change.  */
       if (!INTEGRAL_TYPE_P (use_type)
-          || TYPE_PRECISION (new_type) > TYPE_PRECISION (use_type)
-         || TYPE_PRECISION (type) < TYPE_PRECISION (use_type))
+	  || TYPE_PRECISION (type) <= TYPE_PRECISION (use_type))
         return NULL;
 
+      /* Check that NEW_TYPE is not bigger than the conversion result.  */
+      if (TYPE_PRECISION (new_type) > TYPE_PRECISION (use_type))
+	return NULL;
+
       if (TYPE_UNSIGNED (new_type) != TYPE_UNSIGNED (use_type)
           || TYPE_PRECISION (new_type) != TYPE_PRECISION (use_type))
         {