Update 'Q' constraint documentation.
[official-gcc.git] / libgomp / testsuite / libgomp.hsa.c / c.exp
blob4614192320adb6236abbb3d9269537e6e3fde1a7
1 if [info exists lang_library_path] then {
2 unset lang_library_path
3 unset lang_link_flags
5 if [info exists lang_test_file] then {
6 unset lang_test_file
8 if [info exists lang_include_flags] then {
9 unset lang_include_flags
12 load_lib libgomp-dg.exp
13 load_gcc_lib gcc-dg.exp
15 # Initialize dg.
16 dg-init
18 # Turn on OpenMP.
19 lappend ALWAYS_CFLAGS "additional_flags=-fopenmp"
21 set ld_library_path $always_ld_library_path
22 append ld_library_path [gcc-set-multilib-library-path $GCC_UNDER_TEST]
23 set_ld_library_path_env_vars
25 global DEFAULT_CFLAGS
26 if [info exists DEFAULT_CFLAGS] then {
27 set CFLAGS_list [list "-O0" $DEFAULT_CFLAGS]
28 } else {
29 set CFLAGS_list [list "-O0" "-O2"]
32 if [check_effective_target_hsa_offloading_selected] {
33 foreach USE_CFLAGS $CFLAGS_list {
34 # Gather a list of all tests.
35 set tests [lsort [find $srcdir/$subdir *.c]]
36 # Main loop.
37 dg-runtest $tests "" [concat $USE_CFLAGS "-Whsa"]
41 # All done.
42 dg-finish