diff mbox

[alpha] : Fix c11 fallout in alpha testsuite

Message ID CAFULd4bgWYTE5YM1mUDegkJf7k+F7uQTdotVDQ5nUTqpqX+zGg@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak Oct. 24, 2014, 9:01 a.m. UTC
2014-10-24  Uros Bizjak  <ubizjak@gmail.com>

    * gcc.target/alpha/980217-1.c (main): Fix implicit int.
    * gcc.target/alpha/pr19518.c (_mm_setzero_si64): New function.

Tested on alphaev68-linux-gnu and committed to mainline SVN.

Uros.
diff mbox

Patch

Index: gcc.target/alpha/980217-1.c
===================================================================
--- gcc.target/alpha/980217-1.c	(revision 216611)
+++ gcc.target/alpha/980217-1.c	(working copy)
@@ -26,7 +26,7 @@ 
   return ~(t >> 31) & (1 - ((ix & 0x80000000) >> 30));
 }
 
-main ()
+int main ()
 {
   float x = 1.0 / 0.0;
   int i = isinff (x);
Index: gcc.target/alpha/pr19518.c
===================================================================
--- gcc.target/alpha/pr19518.c	(revision 216611)
+++ gcc.target/alpha/pr19518.c	(working copy)
@@ -9,6 +9,10 @@ 
 typedef int FbStride;
 typedef unsigned long __m64;
 extern __m64 load8888 (__m64);
+static __inline __m64 _mm_setzero_si64(void)
+{
+  return (__m64)0L;
+}
 static __inline __m64 _mm_adds_pu8(__m64 __m1, __m64 __m2)
 {
     return __m1 + __builtin_alpha_minsb8(__m2, ~__m1);