[gdb/testsuite] Require have_compile_flag -mavx512f in gdb.arch/i386-avx512.exp
authorTom de Vries <tdevries@suse.de>
Tue, 29 Aug 2023 15:27:19 +0000 (17:27 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 29 Aug 2023 15:27:19 +0000 (17:27 +0200)
When running test-case gdb.arch/i386-avx512.exp with gcc 4.8.4, I run into:
...
Running gdb.arch/i386-avx512.exp ...
gdb compile failed, gcc: error: unrecognized command line option '-mavx512f'
...

Fix this by requiring have_compile_flag -mavx512f.

Tested on x86_64-linux.

gdb/testsuite/gdb.arch/i386-avx512.exp

index 0c50591dcbe2f549e66b760e51e749cfb5e83d96..758bdacc3a5b744702bae39793b0ea4d3e68552e 100644 (file)
@@ -20,6 +20,7 @@
 
 
 require {is_any_target i?86-*-* x86_64-*-*}
+require {have_compile_flag -mavx512f}
 
 standard_testfile