This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, testsuite]: Tighten gcc.target/i386/abi-1.c test


Hello!

There should be exactly one move of function result value to xmm0 register.

2009-02-21 Uros Bizjak <ubizjak@gmail.com>

   * gcc.target/i386/abi-1.c: Use scan-assembler-times "..." 1 instead of
   scan-assembler to check for xmm0 register.

Patch was tested on x86_64-pc-linux-gnu {,-m32}, committed to mainline.

Uros.

Index: abi-1.c
===================================================================
--- abi-1.c    (revision 144347)
+++ abi-1.c    (working copy)
@@ -5,4 +5,4 @@
typedef double v2df __attribute__((vector_size (16)));
v2df foo (void) { return (v2df){ 1.0, 2.0 }; }

-/* { dg-final { scan-assembler "xmm0" } } */
+/* { dg-final { scan-assembler-times "xmm0" 1 } } */
I


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]