Commit 431043bd by Uros Bizjak

i386.exp (check_effective_target_3dnow): Fix test code.

	* gcc.target/i386/i386.exp (check_effective_target_3dnow):
	Fix test code.
	(check_effective_target_xop): Remove __may_alias__ attribute.

From-SVN: r159621
parent feef2551
...@@ -272,7 +272,7 @@ ...@@ -272,7 +272,7 @@
* configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test. * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
* configure: Regenerate. * configure: Regenerate.
* config.in: 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. !HAVE_AS_IX86_REP_LOCK_PREFIX.
Don't emit whitespace. Don't emit whitespace.
* config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep. * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
......
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> 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
PR target/44202 PR target/44202
...@@ -62,13 +68,13 @@ ...@@ -62,13 +68,13 @@
* gcc.target/i386/3dnowA-2.c: Likewise. * gcc.target/i386/3dnowA-2.c: Likewise.
* gcc.target/i386/pr42549.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-addsubps.c: Likewise.
* gcc.target/i386/sse3-haddpd.c: Likewise. * gcc.target/i386/sse3-haddpd.c: Likewise.
* gcc.target/i386/sse3-haddps.c: Likewise. * gcc.target/i386/sse3-haddps.c: Likewise.
* gcc.target/i386/sse3-hsubpd.c: Likewise. * gcc.target/i386/sse3-hsubpd.c: Likewise.
* gcc.target/i386/sse3-hsubps.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-movddup.c: Likewise.
* gcc.target/i386/sse3-movshdup.c: Likewise. * gcc.target/i386/sse3-movshdup.c: Likewise.
* gcc.target/i386/sse3-movsldup.c: Likewise. * gcc.target/i386/sse3-movsldup.c: Likewise.
...@@ -1542,7 +1548,7 @@ ...@@ -1542,7 +1548,7 @@
* obj-c++.dg/stubify-1.mm: Ditto. * obj-c++.dg/stubify-1.mm: Ditto.
* lib/objc-torture.exp: Do not require link success for * lib/objc-torture.exp: Do not require link success for
"trivial.m" in the runtime checks when dowhat = 'compile'. "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 * objc.dg/stubify-1.m: Restrict to ilp32 targets. Require
Darwin8/OSX10.4 - compatible code generation. Darwin8/OSX10.4 - compatible code generation.
* objc.dg/stubify-2.m: Ditto. * objc.dg/stubify-2.m: Ditto.
......
...@@ -40,9 +40,12 @@ proc check_effective_target_ms_hook_prologue { } { ...@@ -40,9 +40,12 @@ proc check_effective_target_ms_hook_prologue { } {
# Return 1 if 3dnow instructions can be compiled. # Return 1 if 3dnow instructions can be compiled.
proc check_effective_target_3dnow { } { proc check_effective_target_3dnow { } {
return [check_no_compiler_messages 3dnow object { 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" ] } "-O2 -m3dnow" ]
} }
...@@ -173,7 +176,7 @@ proc check_effective_target_fma4 { } { ...@@ -173,7 +176,7 @@ proc check_effective_target_fma4 { } {
# Return 1 if xop instructions can be compiled. # Return 1 if xop instructions can be compiled.
proc check_effective_target_xop { } { proc check_effective_target_xop { } {
return [check_no_compiler_messages xop object { 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))); typedef short __v8hi __attribute__ ((__vector_size__ (16)));
__m128i _mm_maccs_epi16(__m128i __A, __m128i __B, __m128i __C) __m128i _mm_maccs_epi16(__m128i __A, __m128i __B, __m128i __C)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment