diff mbox

[cilk-plus,testsuite] Skip int16 and size16 targets (too much FAILs)

Message ID 51E7F220.4090308@gjlay.de
State New
Headers show

Commit Message

Georg-Johann Lay July 18, 2013, 1:48 p.m. UTC
Hi,

running the cilk-plus.exp tests I get ~200 FAILs because the tests are not
written for 16-bit int or size_t platforms.

As a quick tentative fix, the cilk-plus tests are skipped on such platforms.

Common problems are:

- internal compiler error: in build_int_cst_wide, at tree.c:1214

- warning: overflow in implicit constant conversion

- error: total size of local objects too large

- error: size of array 'array4' is too large

- Many execution fails because int32 is assumed.

See attached cilk-fail.txt.

The proposed patch arranges for the current state of cilk-plus implementation.
 Moreover, I don't think a 16-bit or 8-bit platform is multicore and it makes
sense to run cilk-plus on them.

I don't know enough if cilk-plus to fix all these FAILs.  Therefore it is very
much appreciated if cilk-plus maintainers fix these FAILs or apply skipping or
cilk-plus tests on the 16-bit platforms until proper tests are worked out and
the ICEs are fixed.

Thanks.


	* lib/target-supports.exp (check_effective_target_cilkplus): New proc.
	* gcc.dg/cilk-plus/cilk-plus.exp: only run if
	check_effective_target_cilkplus.
	* g++.dg/cilk-plus/cilk-plus.exp: Same.
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -O0 -fcilkplus (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -O0 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -O0 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -O0 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -O0 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -O0 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -O0 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -O0 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -O1 -fcilkplus (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -O1 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -O1 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -O1 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/exec-once2.c  -O1 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -O1 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -O1 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -O1 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -O1 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -O2 -ftree-vectorize -fcilkplus (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -O2 -ftree-vectorize -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -O2 -ftree-vectorize -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -O2 -ftree-vectorize -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/exec-once2.c  -O2 -ftree-vectorize -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -O2 -ftree-vectorize -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -O2 -ftree-vectorize -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -O2 -ftree-vectorize -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -O2 -ftree-vectorize -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -O3 -fcilkplus (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -O3 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -O3 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -O3 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/exec-once2.c  -O3 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -O3 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -O3 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -O3 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -O3 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -g -fcilkplus (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -g -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -g -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -g -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -g -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -g -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -g -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -g -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -g -O0 -fcilkplus (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -g -O0 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -g -O0 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -g -O0 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -g -O0 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -g -O0 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -g -O0 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -g -O0 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -g -O1 -fcilkplus (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -g -O1 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -g -O1 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -g -O1 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/exec-once2.c  -g -O1 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -g -O1 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -g -O1 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -g -O1 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -g -O1 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -g -O2 -ftree-vectorize -fcilkplus (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -g -O2 -ftree-vectorize -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -g -O2 -ftree-vectorize -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -g -O2 -ftree-vectorize -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/exec-once2.c  -g -O2 -ftree-vectorize -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -g -O2 -ftree-vectorize -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -g -O2 -ftree-vectorize -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -g -O2 -ftree-vectorize -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -g -O2 -ftree-vectorize -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -g -O3 -fcilkplus (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -g -O3 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -g -O3 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -g -O3 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/exec-once2.c  -g -O3 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -g -O3 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -g -O3 -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -g -O3 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -g -O3 -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -O3 -ftree-vectorize -fcilkplus -g (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -O3 -ftree-vectorize -fcilkplus -g (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -O3 -ftree-vectorize -fcilkplus -g (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -O3 -ftree-vectorize -fcilkplus -g execution test
FAIL: c-c++-common/cilk-plus/AN/exec-once2.c  -O3 -ftree-vectorize -fcilkplus -g execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -O3 -ftree-vectorize -fcilkplus -g (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -O3 -ftree-vectorize -fcilkplus -g (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -O3 -ftree-vectorize -fcilkplus -g execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -O3 -ftree-vectorize -fcilkplus -g execution test
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus -std=c99 (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -fcilkplus -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -fcilkplus -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -fcilkplus -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -fcilkplus -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -fcilkplus -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -fcilkplus -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus -O0 -std=c99 (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus -O0 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -fcilkplus -O0 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -fcilkplus -O0 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -fcilkplus -O0 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -fcilkplus -O0 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -fcilkplus -O0 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -fcilkplus -O0 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus -O1 -std=c99 (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus -O1 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -fcilkplus -O1 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -fcilkplus -O1 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/exec-once2.c  -fcilkplus -O1 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -fcilkplus -O1 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -fcilkplus -O1 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -fcilkplus -O1 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -fcilkplus -O1 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus -O2 -ftree-vectorize -std=c99 (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus -O2 -ftree-vectorize -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -fcilkplus -O2 -ftree-vectorize -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -fcilkplus -O2 -ftree-vectorize -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/exec-once2.c  -fcilkplus -O2 -ftree-vectorize -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -fcilkplus -O2 -ftree-vectorize -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -fcilkplus -O2 -ftree-vectorize -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -fcilkplus -O2 -ftree-vectorize -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -fcilkplus -O2 -ftree-vectorize -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus -O3 -std=c99 (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus -O3 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -fcilkplus -O3 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -fcilkplus -O3 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/exec-once2.c  -fcilkplus -O3 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -fcilkplus -O3 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -fcilkplus -O3 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -fcilkplus -O3 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -fcilkplus -O3 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus -g -std=c99 (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus -g -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -fcilkplus -g -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -fcilkplus -g -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -fcilkplus -g -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -fcilkplus -g -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -fcilkplus -g -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -fcilkplus -g -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus -g -O0 -std=c99 (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus -g -O0 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -fcilkplus -g -O0 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -fcilkplus -g -O0 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -fcilkplus -g -O0 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -fcilkplus -g -O0 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -fcilkplus -g -O0 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -fcilkplus -g -O0 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus -g -O1 -std=c99 (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus -g -O1 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -fcilkplus -g -O1 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -fcilkplus -g -O1 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/exec-once2.c  -fcilkplus -g -O1 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -fcilkplus -g -O1 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -fcilkplus -g -O1 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -fcilkplus -g -O1 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -fcilkplus -g -O1 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus -g -O2 -ftree-vectorize -std=c99 (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus -g -O2 -ftree-vectorize -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -fcilkplus -g -O2 -ftree-vectorize -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -fcilkplus -g -O2 -ftree-vectorize -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/exec-once2.c  -fcilkplus -g -O2 -ftree-vectorize -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -fcilkplus -g -O2 -ftree-vectorize -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -fcilkplus -g -O2 -ftree-vectorize -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -fcilkplus -g -O2 -ftree-vectorize -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -fcilkplus -g -O2 -ftree-vectorize -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus -g -O3 -std=c99 (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -fcilkplus -g -O3 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -fcilkplus -g -O3 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -fcilkplus -g -O3 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/exec-once2.c  -fcilkplus -g -O3 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -fcilkplus -g -O3 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -fcilkplus -g -O3 -std=c99 (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -fcilkplus -g -O3 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -fcilkplus -g -O3 -std=c99 execution test
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -O3 -ftree-vectorize -std=c99 -g -fcilkplus (internal compiler error)
FAIL: c-c++-common/cilk-plus/AN/an-if.c  -O3 -ftree-vectorize -std=c99 -g -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/array_test2.c  -O3 -ftree-vectorize -std=c99 -g -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/conditional.c  -O3 -ftree-vectorize -std=c99 -g -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/exec-once2.c  -O3 -ftree-vectorize -std=c99 -g -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/gather_scatter.c  -O3 -ftree-vectorize -std=c99 -g -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/if_test.c  -O3 -ftree-vectorize -std=c99 -g -fcilkplus (test for excess errors)
FAIL: c-c++-common/cilk-plus/AN/sec_implicit_ex.c  -O3 -ftree-vectorize -std=c99 -g -fcilkplus execution test
FAIL: c-c++-common/cilk-plus/AN/sec_reduce_return.c  -O3 -ftree-vectorize -std=c99 -g -fcilkplus execution test

Comments

Mike Stump July 18, 2013, 6:13 p.m. UTC | #1
On Jul 18, 2013, at 6:48 AM, Georg-Johann Lay <avr@gjlay.de> wrote:
> running the cilk-plus.exp tests I get ~200 FAILs because the tests are not
> written for 16-bit int or size_t platforms.
> 
> As a quick tentative fix, the cilk-plus tests are skipped on such platforms.

I think this patch is fine.  Until such time until cilk can do better, I think this is a fine way to address the issue.  The other possible way is to not spin up any support for cilk on such a platform in the first place.  noconfigdir is one common way to do this.
Iyer, Balaji V July 18, 2013, 6:53 p.m. UTC | #2
> -----Original Message-----
> From: Mike Stump [mailto:mikestump@comcast.net]
> Sent: Thursday, July 18, 2013 2:14 PM
> To: Georg-Johann Lay
> Cc: gcc-patches@gcc.gnu.org; Iyer, Balaji V
> Subject: Re: [patch,cilk-plus,testsuite] Skip int16 and size16 targets (too much
> FAILs)
> 
> On Jul 18, 2013, at 6:48 AM, Georg-Johann Lay <avr@gjlay.de> wrote:
> > running the cilk-plus.exp tests I get ~200 FAILs because the tests are
> > not written for 16-bit int or size_t platforms.
> >
> > As a quick tentative fix, the cilk-plus tests are skipped on such platforms.
> 
> I think this patch is fine.  Until such time until cilk can do better, I think this is a
> fine way to address the issue.  The other possible way is to not spin up any
> support for cilk on such a platform in the first place.  noconfigdir is one common
> way to do this.

Hi Mike,
	The changes we have committed thus far does not require the cilk runtime.
Thanks,

Balaji V. Iyer.
diff mbox

Patch

Index: lib/target-supports.exp
===================================================================
--- lib/target-supports.exp	(revision 200903)
+++ lib/target-supports.exp	(working copy)
@@ -1132,6 +1132,24 @@  proc check_effective_target_static_libgf
     } "-static"]
 }
 
+# Return 1 if cilk-plus is supported by the target, 0 otherwise.
+ 
+proc check_effective_target_cilkplus { } {
+    # Skip cilk-plus tests on int16 and size16 targets for now.
+    # The cilk-plus tests are not generic enough to cover these
+    # cases and would throw hundreds of FAILs.
+    if { [check_effective_target_int16]
+	 || ![check_effective_target_size32plus] } {
+	return 0;
+    }
+
+    # Skip AVR, its RAM is too small and too many tests would fail.
+    if { [istarget avr-*-*] } {
+	return 0;
+    }
+    return 1
+}
+
 proc check_linker_plugin_available { } {
   return [check_no_compiler_messages_nocache linker_plugin executable {
      int main() { return 0; }
Index: gcc.dg/cilk-plus/cilk-plus.exp
===================================================================
--- gcc.dg/cilk-plus/cilk-plus.exp	(revision 200903)
+++ gcc.dg/cilk-plus/cilk-plus.exp	(working copy)
@@ -19,6 +19,10 @@ 
 
 load_lib gcc-dg.exp
 
+if { ![check_effective_target_cilkplus] } {
+    return;
+}
+
 dg-init
 dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -fcilkplus" " "
 dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -O0 -fcilkplus" " "
Index: g++.dg/cilk-plus/cilk-plus.exp
===================================================================
--- g++.dg/cilk-plus/cilk-plus.exp	(revision 200903)
+++ g++.dg/cilk-plus/cilk-plus.exp	(working copy)
@@ -19,6 +19,10 @@ 
 
 load_lib g++-dg.exp
 
+if { ![check_effective_target_cilkplus] } {
+    return;
+}
+
 dg-init
 dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -fcilkplus" " "
 dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -O0 -fcilkplus" " "