This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++] Handle ?: for vectors


On 10/17/2012 12:56 PM, Marc Glisse wrote:
+      if (!COMPARISON_CLASS_P (arg1))
+	{
+	  if (TYPE_UNSIGNED (TREE_TYPE (arg1_type)))
+	    {
+	      arg1_type = signed_type_for (arg1_type);
+	      arg1 = convert (arg1_type, arg1);
+	    }
+	  arg1 = build2 (LT_EXPR, arg1_type, arg1,
+			 build_zero_cst (arg1_type));
+	}

Why LT_EXPR rather than NE_EXPR?


Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]