i386.exp (check_effective_target_3dnow): Fix test code.
authorUros Bizjak <uros@gcc.gnu.org>
Thu, 20 May 2010 09:34:50 +0000 (11:34 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 20 May 2010 09:34:50 +0000 (11:34 +0200)
* gcc.target/i386/i386.exp (check_effective_target_3dnow):
Fix test code.
(check_effective_target_xop): Remove __may_alias__ attribute.

From-SVN: r159621

gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/i386.exp

index 4dce40331e419183af9d2b798bb9a5b4536e2a9c..cde189eed40f8e76e607a28e4e19d453917d9540 100644 (file)
 
 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
 
-        * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
+       * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
        to tree.
-        (dump_mem_ref): Adopt debug code to handle a tree as step.  This
+       (dump_mem_ref): Adopt debug code to handle a tree as step.  This
        also checks for a constant int vs.  non-constant but
        loop-invariant steps.
-        (find_or_create_group): Change the sort algorithm to only consider
+       (find_or_create_group): Change the sort algorithm to only consider
        steps that are constant ints.
-        (idx_analyze_ref): Adopt code to handle a tree instead of a
+       (idx_analyze_ref): Adopt code to handle a tree instead of a
        HOST_WIDE_INT for step.
-        (gather_memory_references_ref): Handle tree instead of int and be
+       (gather_memory_references_ref): Handle tree instead of int and be
        prepared to see a NULL_TREE.
-        (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
+       (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
        prefetches if the step cannot be calculated at compile time.
-        (issue_prefetch_ref): Issue prefetches for non-constant but
+       (issue_prefetch_ref): Issue prefetches for non-constant but
        loop-invariant steps.
 
 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
        * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
        * configure: Regenerate.
        * config.in: Regenerate.
-       * config/i386/i386.c (print_operand) <case ;>: Also print ; if
+       * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
        !HAVE_AS_IX86_REP_LOCK_PREFIX.
        Don't emit whitespace.
        * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
        add BARRIER after previous bb if needed.
 
 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
+
        * tree.c (build_function_type_list_1): Remove bogus assert condition.
+
 2010-05-17  Alan Modra  <amodra@gmail.com>
 
        * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
 
 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
 
-        * config/s390/s390.c: Define sane prefetch settings and activate
-        flag_prefetch_loop_arrays on -O3.
-        * config/s390/s390.h: Declare that read can use write prefetch.
+       * config/s390/s390.c: Define sane prefetch settings and activate
+       flag_prefetch_loop_arrays on -O3.
+       * config/s390/s390.h: Declare that read can use write prefetch.
 
 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
 
index 92eb3cf8a8b0947b5abcf4dc3db72c36f2bd6c57..e5412e8a9901e8965f39498f814f8d4801603e4d 100644 (file)
@@ -1,3 +1,9 @@
+2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
+
+       * gcc.target/i386/i386.exp (check_effective_target_3dnow):
+       Fix test code.
+       (check_effective_target_xop): Remove __may_alias__ attribute.
+
 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
 
        PR target/44202
        * gcc.target/i386/3dnowA-2.c: Likewise.
        * gcc.target/i386/pr42549.c: Likewise.
 
-       * gcc.target/i386/sse3-addsubpd.c: Use dg-require-effective-target sse3.
+       * gcc.target/i386/sse3-lddqu.c: Use dg-require-effective-target sse3. 
+       * gcc.target/i386/sse3-addsubpd.c: Likewise.
        * gcc.target/i386/sse3-addsubps.c: Likewise.
        * gcc.target/i386/sse3-haddpd.c: Likewise.
        * gcc.target/i386/sse3-haddps.c: Likewise.
        * gcc.target/i386/sse3-hsubpd.c: Likewise.
        * gcc.target/i386/sse3-hsubps.c: Likewise.
-       * gcc.target/i386/sse3-lddqu.c: Likewise.
        * gcc.target/i386/sse3-movddup.c: Likewise.
        * gcc.target/i386/sse3-movshdup.c: Likewise.
        * gcc.target/i386/sse3-movsldup.c: Likewise.
 
 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
 
-        PR 44078
-        * gcc.dg/tree-ssa/prefetch-7.c: Change pattern to match only the old
-        debug messages but not the newly introduced one.
+       PR 44078
+       * gcc.dg/tree-ssa/prefetch-7.c: Change pattern to match only the old
+       debug messages but not the newly introduced one.
 
 2010-05-16  Daniel Franke  <franke.daniel@gmail.com>
 
-        PR fortran/35779
+       PR fortran/35779
        * gfortran.dg/initialization_25.f90: Commented testcase.
        * gfortran.dg/initialization_26.f90: New.
 
 
 2010-05-13  Daniel Franke  <franke.daniel@gmail.com>
 
-        PR fortran/35779
-        * gfortran.dg/initialization_25.f90: New.
+       PR fortran/35779
+       * gfortran.dg/initialization_25.f90: New.
 
 2010-05-13  Martin Jambor  <mjambor@suse.cz>
 
 
 2010-05-11  Daniel Franke  <franke.daniel@gmail.com>
 
-        PR fortran/43711
-        * gfortran.dg/gomp/pr43711.f90: New.
+       PR fortran/43711
+       * gfortran.dg/gomp/pr43711.f90: New.
 
 2010-05-11  Daniel Franke  <franke.daniel@gmail.com>
 
        * gcc.target/arm/thumb-stackframe.c: New test.
 
 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
-       
+
        * gcc.dg/pr32207.c: Fix typo in expected warning messages.
        * gcc.dg/misc-column.c: Likewise.
        * gcc.dg/Walways-true-1.c: Likewise.
        * obj-c++.dg/stubify-1.mm: Ditto.
        * lib/objc-torture.exp: Do not require link success for
        "trivial.m" in the runtime checks when dowhat = 'compile'.
-       * lib/dg-pch.exp: (dg-flags-pch): New Proc.
+       * lib/dg-pch.exp (dg-flags-pch): New Proc.
        * objc.dg/stubify-1.m:  Restrict to ilp32 targets.  Require
        Darwin8/OSX10.4 - compatible code generation.
        * objc.dg/stubify-2.m: Ditto.
index 622fbf8ee216050bc99af2fdde4ce95a2b7b68ec..8b31231b61c341a60c8db4e4011679542e686799 100644 (file)
@@ -40,9 +40,12 @@ proc check_effective_target_ms_hook_prologue { } {
 # Return 1 if 3dnow instructions can be compiled.
 proc check_effective_target_3dnow { } {
     return [check_no_compiler_messages 3dnow object {
-       void _m_pfadd (void)
+       typedef int __m64 __attribute__ ((__vector_size__ (8)));
+       typedef float __v2sf __attribute__ ((__vector_size__ (8)));
+
+       __m64 _m_pfadd (__m64 __A, __m64 __B)
        {
-           __builtin_ia32_pfadd();
+           return (__m64) __builtin_ia32_pfadd ((__v2sf)__A, (__v2sf)__B);
        }
     } "-O2 -m3dnow" ]
 }
@@ -173,7 +176,7 @@ proc check_effective_target_fma4 { } {
 # Return 1 if xop instructions can be compiled.
 proc check_effective_target_xop { } {
     return [check_no_compiler_messages xop object {
-       typedef long long __m128i __attribute__ ((__vector_size__ (16), __may_alias__));
+       typedef long long __m128i __attribute__ ((__vector_size__ (16)));
        typedef short __v8hi __attribute__ ((__vector_size__ (16)));
        __m128i _mm_maccs_epi16(__m128i __A, __m128i __B, __m128i __C)
        {