re PR tree-optimization/32215 (ICE in supportable_narrowing_operation, at tree-vector...
authorUros Bizjak <ubizjak@gmail.com>
Tue, 5 Jun 2007 20:23:58 +0000 (22:23 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 5 Jun 2007 20:23:58 +0000 (22:23 +0200)
        PR tree-optimization/32215
        * tree-vectorizer.c (supportable_widening_operation): Return false
        for unsupported FIX_TRUNC_EXPR tree code.
        (supportable_narrowing_operation): Ditto for FLOAT_EXPR tree code.

From-SVN: r125343

gcc/ChangeLog
gcc/tree-vectorizer.c

index bf664a8e64d960b4efe9ba20e745a04433824e9a..af639169526e67452078d123003b717b5a56821d 100644 (file)
@@ -1,3 +1,10 @@
+2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR tree-optimization/32215
+       * tree-vectorizer.c (supportable_widening_operation): Return false
+       for unsupported FIX_TRUNC_EXPR tree code.
+       (supportable_narrowing_operation): Ditto for FLOAT_EXPR tree code.
+
 2007-06-06  Nathan Froyd  <froydnj@codesourcery.com>
 
        * config/rs6000/rs6000.h (FIXED_SCRATCH): Use r0 as a scratch
index df884f4224236d550f11d94ad2125a0d59483b80..be2d6b3c7f7b83da88c20971e5152f418687b48e 100644 (file)
@@ -1841,6 +1841,12 @@ supportable_widening_operation (enum tree_code code, tree stmt, tree vectype,
         }
       break;
 
+    case FIX_TRUNC_EXPR:
+      /* ??? Not yet implemented due to missing VEC_UNPACK_FIX_TRUNC_HI_EXPR/
+        VEC_UNPACK_FIX_TRUNC_LO_EXPR tree codes and optabs used for
+        computing the operation.  */
+      return false;
+
     default:
       gcc_unreachable ();
     }
@@ -1903,6 +1909,11 @@ supportable_narrowing_operation (enum tree_code code,
       c1 = VEC_PACK_FIX_TRUNC_EXPR;
       break;
 
+    case FLOAT_EXPR:
+      /* ??? Not yet implemented due to missing VEC_PACK_FLOAT_EXPR
+        tree code and optabs used for computing the operation.  */
+      return false;
+
     default:
       gcc_unreachable ();
     }