+2012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
+
+ * doc/sourcebuild.texi: Document long_neq_int effective target.
+
2012-08-10 Richard Guenther <rguenther@suse.de>
PR tree-optimization/54109
@item int16
Target has @code{int} that is 16 bits or shorter.
+@item long_neq_int
+Target has @code{int} and @code{long} with different sizes.
+
@item large_double
Target supports @code{double} that is longer than @code{float}.
+2012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
+
+ * lib/target-supports.exp (check_effective_target_long_neq_int): New.
+ * gcc.dg/tree-ssa/slsr-30.c: Check for long_neq_int effective target.
+
2012-08-10 Richard Guenther <rguenther@suse.de>
PR tree-optimization/54109
/* Verify straight-line strength reduction fails for simple integer addition
with casts thrown in when -fwrapv is used. */
-/* { dg-do compile { target { ! { ilp32 } } } } */
+/* { dg-do compile { target { long_neq_int } } } */
/* { dg-options "-O3 -fdump-tree-dom2 -fwrapv" } */
long
}]
}
+# Return 1 if long and int have different sizes,
+# 0 otherwise.
+
+proc check_effective_target_long_neq_int { } {
+ return [check_no_compiler_messages long_ne_int object {
+ int dummy[sizeof (int) != sizeof (long) ? 1 : -1];
+ }]
+}
+
# Return 1 if the target supports long double larger than double,
# 0 otherwise.