Improve test for processor feature om MPX registers test.
authorWalfred Tedeschi <walfred.tedeschi@intel.com>
Mon, 8 Jun 2015 15:37:40 +0000 (17:37 +0200)
committerWalfred Tedeschi <walfred.tedeschi@intel.com>
Wed, 10 Jun 2015 07:58:05 +0000 (09:58 +0200)
commit547a646d67e7a38b96d2a93b709e52c9461d017f
treedcacbcbcb2d832a1a00f61979b0d745acc1a0419
parent8b600ba2b47c9ae56c21f1abdfeb1eb5510d9615
Improve test for processor feature om MPX registers test.

Skips the MPX register test in case target is not Intel.
Improves the test for MPX feature making MPX and AVX512
tests more similar in terms of initialization.
Indentation was improved on sample file and final return added
to have_mpx.  On test file identation was improved and
gdb_send was exchanged by gdb_test_multiple.

2015-06-08  Walfred Tedeschi  <walfred.tedeschi@intel.com>

gdb/testsuite
* gdb.arch/i386-mpx.c: Added final return to the have_mpx
function and improved indentation.
* gdb.arch/i386-mpx.exp: Exchanging gdb_send and gdb_expect for
gdb_test_multiple. Added additional tests to skip the test.
gdb/testsuite/gdb.arch/i386-mpx.c
gdb/testsuite/gdb.arch/i386-mpx.exp