From: Alan Modra Date: Tue, 14 Feb 2017 10:00:27 +0000 (+1030) Subject: Fix powerpc testsuite source errors X-Git-Tag: users/ARM/embedded-binutils-2_28-branch-2017q1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce45602b476d30f2ca354691374a092886b64951;p=thirdparty%2Fbinutils-gdb.git Fix powerpc testsuite source errors PR 21118 work exposed these errors in the testsuite. * testsuite/gas/ppc/cell.s: Correct invalid registers. * testsuite/gas/ppc/vle-simple-1.s: Likewise. * testsuite/gas/ppc/vle-simple-2.s: Likewise. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 4edacf25d13..7b6c99cbfd3 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2017-02-14 Alan Modra + + * testsuite/gas/ppc/cell.s: Correct invalid registers. + * testsuite/gas/ppc/vle-simple-1.s: Likewise. + * testsuite/gas/ppc/vle-simple-2.s: Likewise. + 2017-02-10 Nicholas Piggin * testsuite/gas/ppc/power9.d : New tests. diff --git a/gas/testsuite/gas/ppc/cell.s b/gas/testsuite/gas/ppc/cell.s index b2942996927..dd6e15fc712 100644 --- a/gas/testsuite/gas/ppc/cell.s +++ b/gas/testsuite/gas/ppc/cell.s @@ -1,21 +1,21 @@ .text - lvlx %r0, %r1, %r2 - lvlx %r0, 0, %r2 - lvlxl %r0, %r1, %r2 - lvlxl %r0, 0, %r2 - lvrx %r0, %r1, %r2 - lvrx %r0, 0, %r2 - lvrxl %r0, %r1, %r2 - lvrxl %r0, 0, %r2 + lvlx %v0, %r1, %r2 + lvlx %v0, 0, %r2 + lvlxl %v0, %r1, %r2 + lvlxl %v0, 0, %r2 + lvrx %v0, %r1, %r2 + lvrx %v0, 0, %r2 + lvrxl %v0, %r1, %r2 + lvrxl %v0, 0, %r2 - stvlx %r0, %r1, %r2 - stvlx %r0, 0, %r2 - stvlxl %r0, %r1, %r2 - stvlxl %r0, 0, %r2 - stvrx %r0, %r1, %r2 - stvrx %r0, 0, %r2 - stvrxl %r0, %r1, %r2 - stvrxl %r0, 0, %r2 + stvlx %v0, %r1, %r2 + stvlx %v0, 0, %r2 + stvlxl %v0, %r1, %r2 + stvlxl %v0, 0, %r2 + stvrx %v0, %r1, %r2 + stvrx %v0, 0, %r2 + stvrxl %v0, %r1, %r2 + stvrxl %v0, 0, %r2 ldbrx %r0, 0, %r1 ldbrx %r0, %r1, %r2 diff --git a/gas/testsuite/gas/ppc/vle-simple-1.s b/gas/testsuite/gas/ppc/vle-simple-1.s index 074cc0fec88..713fb90c319 100644 --- a/gas/testsuite/gas/ppc/vle-simple-1.s +++ b/gas/testsuite/gas/ppc/vle-simple-1.s @@ -4,7 +4,7 @@ target0: se_beq target3 target1: - se_bf cr1, target4 + se_bf gt, target4 target2: se_bge target2 @@ -29,6 +29,6 @@ target8: se_bso target8 target9: - se_bt cr2, target6 + se_bt eq, target6 se_bun target9 diff --git a/gas/testsuite/gas/ppc/vle-simple-2.s b/gas/testsuite/gas/ppc/vle-simple-2.s index 8f95dc20df9..cad3ca5d764 100644 --- a/gas/testsuite/gas/ppc/vle-simple-2.s +++ b/gas/testsuite/gas/ppc/vle-simple-2.s @@ -13,10 +13,10 @@ target1: target2: e_beql cr0, target1 e_beql target6 - e_bf cr1, target3 + e_bf 4*cr0+gt, target3 target3: - e_bfl cr3, target0 + e_bfl cr0*4+un, target0 e_bge cr1, target1 e_bge target5 @@ -69,8 +69,8 @@ target8: target9: e_bsol cr0, target8 e_bsol target8 - e_bt cr1, target7 - e_btl cr0, target5 + e_bt gt+cr0*4, target7 + e_btl lt+4*cr0, target5 e_bun cr1, target4 e_bun target4 e_bunl cr2, target0