With 16 bit integers, (int) 0x00010000 is just 0, so execution of that test fails.

Tested for avr with --target_board=atmega128-sim and native on i686-pc-linuc-gnu.

2013-05-13  Joern Rennecke <joern.renne...@embecosm.com>

        * gcc.c-torture/execute/pr56799.x: New file.

Index: gcc.c-torture/execute/pr56799.x
===================================================================
--- gcc.c-torture/execute/pr56799.x     (revision 0)
+++ gcc.c-torture/execute/pr56799.x     (working copy)
@@ -0,0 +1,7 @@
+load_lib target-supports.exp
+
+if { [check_effective_target_int32plus] } {
+       return 0
+}
+
+return 1;

Reply via email to