PowerPC64 little-endian fixes: AltiVec tests
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 4 Feb 2014 17:28:24 +0000 (18:28 +0100)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 4 Feb 2014 17:28:24 +0000 (18:28 +0100)
commit6ed14ff33979bc48367c35b1b235fef8c5e2229b
tree96db8d71daecef2bf029796f00e3657bcb5692e6
parentd63167affc2a56189e3ba2cc47dd9a3451208b59
PowerPC64 little-endian fixes: AltiVec tests

A couple of AltiVec tests fail spuriously on powerpc64le-linux, because
they compare against an incorrect pattern.  Note that those tests already
contain little-endian variants of the patterns, but those seem to have
bit-rotted a bit: when outputting a vector, GDB no longer omits trailing
zero elements (as it used to do in the past).

This patch updates the pattern to the new GDB output behavior.

In addition, the patch updates the endian test to use the new
gdb_test_multiple logic instead of gdb_expect.

gdb/testsuite/ChangeLog:

* gdb.arch/altivec-regs.exp: Use gdb_test_multiple for endian test.
(decimal_vector): Fix for little-endian.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/altivec-regs.exp