]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Limit option '-mgeneral-regs-only' backends in pr119160.
authorJiawei <jiawei@iscas.ac.cn>
Thu, 8 May 2025 08:50:54 +0000 (16:50 +0800)
committerJiawei <jiawei@iscas.ac.cn>
Fri, 9 May 2025 07:20:45 +0000 (15:20 +0800)
Limit option '-mgeneral-regs-only' to those in supported backends.

Version log:
https://patchwork.sourceware.org/project/gcc/patch/20250508080102.1340059-1-jiawei@iscas.ac.cn/

gcc/testsuite/ChangeLog:

* gcc.dg/pr119160.c: Limit backends.

gcc/testsuite/gcc.dg/pr119160.c

index b4629a11d9d2f2435676a6f52cbc64fbdb36d2a0..5743b3b76036d3f5c50a08594fe6c6a416d40dab 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
-/* { dg-options "-O2 -finstrument-functions-once -favoid-store-forwarding -fnon-call-exceptions -fschedule-insns -mgeneral-regs-only -Wno-psabi" } */
+/* { dg-options "-O2 -finstrument-functions-once -favoid-store-forwarding -fnon-call-exceptions -fschedule-insns -Wno-psabi" } */
+/* { dg-additional-options "-mgeneral-regs-only" { target { x86_64-*-* i?86-*-* arm*-*-* aarch64*-*-* } } } */
 
 typedef __attribute__((__vector_size__ (32))) int V;