From a48acecb8f705c87940e647abedd6464d1418ae3 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Fri, 24 Oct 2014 10:58:42 +0200 Subject: [PATCH] 980217-1.c (main): Fix implicit int. * gcc.target/alpha/980217-1.c (main): Fix implicit int. * gcc.target/alpha/pr19518.c (_mm_setzero_si64): New function. From-SVN: r216627 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/alpha/980217-1.c | 2 +- gcc/testsuite/gcc.target/alpha/pr19518.c | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3b7dbdca53a..612cd0212f7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-10-24 Uros Bizjak + + * gcc.target/alpha/980217-1.c (main): Fix implicit int. + * gcc.target/alpha/pr19518.c (_mm_setzero_si64): New function. + 2014-10-24 Markus Trippelsdorf PR bootstrap/63632 diff --git a/gcc/testsuite/gcc.target/alpha/980217-1.c b/gcc/testsuite/gcc.target/alpha/980217-1.c index e4ecf69fda2..06ef4e80828 100644 --- a/gcc/testsuite/gcc.target/alpha/980217-1.c +++ b/gcc/testsuite/gcc.target/alpha/980217-1.c @@ -26,7 +26,7 @@ int isinff(float x) return ~(t >> 31) & (1 - ((ix & 0x80000000) >> 30)); } -main () +int main () { float x = 1.0 / 0.0; int i = isinff (x); diff --git a/gcc/testsuite/gcc.target/alpha/pr19518.c b/gcc/testsuite/gcc.target/alpha/pr19518.c index 42c58b5a5bb..42dd5492437 100644 --- a/gcc/testsuite/gcc.target/alpha/pr19518.c +++ b/gcc/testsuite/gcc.target/alpha/pr19518.c @@ -9,6 +9,10 @@ typedef struct _Picture *PicturePtr; 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); -- 2.30.2