]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[powerpc] [testsuite] reorder dg directives [PR106069]
authorAlexandre Oliva <oliva@adacore.com>
Tue, 23 Jul 2024 05:19:55 +0000 (02:19 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Tue, 23 Jul 2024 05:19:55 +0000 (02:19 -0300)
The dg-do directive appears after dg-require-effective-target in
g++.target/powerpc/pr106069.C.  That doesn't work the way that was
presumably intended.  Both of these directives set dg-do-what, but
dg-do does so fully and unconditionally, overriding any decisions
recorded there by earlier directives.  Reorder the directives more
canonically, so that both take effect.

for  gcc/testsuite/ChangeLog

PR target/106069
* g++.target/powerpc/pr106069.C: Reorder dg directives.

(cherry picked from commit ad65caa332bc7600caff6b9b5b29175b40d91e67)

gcc/testsuite/g++.target/powerpc/pr106069.C

index 537207d2fe838c21471617dcfece98cdc8036298..826379a4479a838b889d062a20a314ec3f911eea 100644 (file)
@@ -1,6 +1,6 @@
+/* { dg-do run } */
 /* { dg-options "-O -fno-tree-forwprop -maltivec" } */
 /* { dg-require-effective-target vmx_hw } */
-/* { dg-do run } */
 
 typedef __attribute__ ((altivec (vector__))) unsigned native_simd_type;