diff mbox

[testsuite] : Add a testcase for PR34283, RA problem fixed by LRA

Message ID CAFULd4Yhf-q9e=VF-vjKMhBioGTKKa+gfPzqK8eCwLa0zJpXrQ@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak Oct. 27, 2012, 7:51 a.m. UTC
Hello!

Attached patch adds a testcase for RA problem that was fixed by LRA.

2012-10-27  Uros Bizjak  <ubizjak@gmail.com>

	PR target/34283
	* gcc.target/i386/pr34283.c: New test.

Tested on x86_64-pc-linux-gnu, committed to mainline SVN.

Uros.
diff mbox

Patch

Index: gcc.target/i386/pr34283.c
===================================================================
--- gcc.target/i386/pr34283.c	(revision 0)
+++ gcc.target/i386/pr34283.c	(working copy)
@@ -0,0 +1,12 @@ 
+/* { dg-do compile } */
+/* { dg-options "-O2 -msse4" } */
+
+typedef long long __m128i __attribute__ ((__vector_size__ (16), __may_alias__));
+typedef long long __v2di __attribute__ ((__vector_size__ (16)));
+
+__m128i _mm_set_epi64x (long long __q1, long long __q0)
+{
+  return __extension__ (__m128i)(__v2di){ __q0, __q1 };
+}
+
+/* { dg-final { scan-assembler-not "movdqa" } } */