diff mbox series

[testsuite] (committed) Fix sed script errors in complex tests

Message ID patch-14033-tamar@arm.com
State New
Headers show
Series [testsuite] (committed) Fix sed script errors in complex tests | expand

Commit Message

Tamar Christina Jan. 15, 2021, 9:13 a.m. UTC
Hi All,

I ran sed script late over the tests which accidentally
introduced a syntax error in the tests.

This fixes it.

Committed under the obvious rule.

Regtested on aarch64-none-linux-gnu and no issues.

Ok for master?

Thanks,
Tamar

gcc/testsuite/ChangeLog:

	* gcc.dg/vect/complex/complex-mla-template.c: Fix sed.
	* gcc.dg/vect/complex/complex-mls-template.c: Likewise.

--- inline copy of patch -- 
diff --git a/gcc/testsuite/gcc.dg/vect/complex/complex-mla-template.c b/gcc/testsuite/gcc.dg/vect/complex/complex-mla-template.c
index 8995e0a9f6bbfa535fa3630dc65bc3baad1016e5..4b5c42b29f1b40bc88c39e6baedd8c930c823dd1 100644


--

Comments

Mike Stump Jan. 15, 2021, 9:31 p.m. UTC | #1
On Jan 15, 2021, at 1:13 AM, Tamar Christina via Gcc-patches <gcc-patches@gcc.gnu.org> wrote:
> I ran sed script late over the tests which accidentally
> introduced a syntax error in the tests.
> 
> This fixes it.
> 
> Committed under the obvious rule.
> 
> Ok for master?

:-)

Which is it?  Anyway, Ok.
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.dg/vect/complex/complex-mla-template.c b/gcc/testsuite/gcc.dg/vect/complex/complex-mla-template.c
index 8995e0a9f6bbfa535fa3630dc65bc3baad1016e5..4b5c42b29f1b40bc88c39e6baedd8c930c823dd1 100644
--- a/gcc/testsuite/gcc.dg/vect/complex/complex-mla-template.c
+++ b/gcc/testsuite/gcc.dg/vect/complex/complex-mla-template.c
@@ -3,77 +3,77 @@ 
 void fma0 (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
 	   _Complex TYPE c[restrict N])
 {
-  for (int i+=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] += a[i] * b[i];
 }
 
 void fma90snd (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
 	       _Complex TYPE c[restrict N])
 {
-  for (int i+=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] += a[i] * (b[i] * I);
 }
 
 void fma180snd (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
 	        _Complex TYPE c[restrict N])
 {
-  for (int i+=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] += a[i] * (b[i] * I * I);
 }
 
 void fma270snd (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
 	        _Complex TYPE c[restrict N])
 {
-  for (int i+=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] += a[i] * (b[i] * I * I * I);
 }
 
 void fma90fst (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
 	       _Complex TYPE c[restrict N])
 {
-  for (int i+=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] += (a[i] * I) * b[i];
 }
 
 void fma180fst (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
 	        _Complex TYPE c[restrict N])
 {
-  for (int i+=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] += (a[i] * I * I) * b[i];
 }
 
 void fma270fst (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
 	        _Complex TYPE c[restrict N])
 {
-  for (int i+=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] += (a[i] * I * I * I) * b[i];
 }
 
 void fmaconjfst (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
 		 _Complex TYPE c[restrict N])
 {
-  for (int i+=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] += ~a[i] * b[i];
 }
 
 void fmaconjsnd (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
 		 _Complex TYPE c[restrict N])
 {
-  for (int i+=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] += a[i] * ~b[i];
 }
 
 void fmaconjboth (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
 		  _Complex TYPE c[restrict N])
 {
-  for (int i+=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] += ~a[i] * ~b[i];
 }
 
 void fma_elem (_Complex TYPE a[restrict N], _Complex TYPE b,
 	       _Complex TYPE c[restrict N])
 {
-  for (int i+=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] += a[i] * b;
 }
 
@@ -81,21 +81,21 @@  void fma_elem (_Complex TYPE a[restrict N], _Complex TYPE b,
 void fma_elemconjfst (_Complex TYPE a[restrict N], _Complex TYPE b,
 		      _Complex TYPE c[restrict N])
 {
-  for (int i+=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] += ~a[i] * b;
 }
 
 void fma_elemconjsnd (_Complex TYPE a[restrict N], _Complex TYPE b,
 		      _Complex TYPE c[restrict N])
 {
-  for (int i+=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] += a[i] * ~b;
 }
 
 void fma_elemconjboth (_Complex TYPE a[restrict N], _Complex TYPE b,
 		       _Complex TYPE c[restrict N])
 {
-  for (int i+=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] += ~a[i] * ~b;
 }
 
diff --git a/gcc/testsuite/gcc.dg/vect/complex/complex-mls-template.c b/gcc/testsuite/gcc.dg/vect/complex/complex-mls-template.c
index 2940be46eaefbfb8224f999a2c3c78c95d46b41e..1954be8b06ad4db91d5ae4ced01aefaaf22b4071 100644
--- a/gcc/testsuite/gcc.dg/vect/complex/complex-mls-template.c
+++ b/gcc/testsuite/gcc.dg/vect/complex/complex-mls-template.c
@@ -3,77 +3,77 @@ 
 void fms0 (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
 	   _Complex TYPE c[restrict N])
 {
-  for (int i-=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] -= a[i] * b[i];
 }
 
 void fms90snd (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
 	       _Complex TYPE c[restrict N])
 {
-  for (int i-=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] -= a[i] * (b[i] * I);
 }
 
 void fms180snd (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
 	        _Complex TYPE c[restrict N])
 {
-  for (int i-=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] -= a[i] * (b[i] * I * I);
 }
 
 void fms270snd (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
 	        _Complex TYPE c[restrict N])
 {
-  for (int i-=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] -= a[i] * (b[i] * I * I * I);
 }
 
 void fms90fst (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
 	       _Complex TYPE c[restrict N])
 {
-  for (int i-=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] -= (a[i] * I) * b[i];
 }
 
 void fms180fst (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
 	        _Complex TYPE c[restrict N])
 {
-  for (int i-=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] -= (a[i] * I * I) * b[i];
 }
 
 void fms270fst (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
 	        _Complex TYPE c[restrict N])
 {
-  for (int i-=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] -= (a[i] * I * I * I) * b[i];
 }
 
 void fmsconjfst (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
 		 _Complex TYPE c[restrict N])
 {
-  for (int i-=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] -= ~a[i] * b[i];
 }
 
 void fmsconjsnd (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
 		 _Complex TYPE c[restrict N])
 {
-  for (int i-=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] -= a[i] * ~b[i];
 }
 
 void fmsconjboth (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
 		  _Complex TYPE c[restrict N])
 {
-  for (int i-=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] -= ~a[i] * ~b[i];
 }
 
 void fms_elem (_Complex TYPE a[restrict N], _Complex TYPE b,
 	       _Complex TYPE c[restrict N])
 {
-  for (int i-=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] -= a[i] * b;
 }
 
@@ -81,21 +81,21 @@  void fms_elem (_Complex TYPE a[restrict N], _Complex TYPE b,
 void fms_elemconjfst (_Complex TYPE a[restrict N], _Complex TYPE b,
 		      _Complex TYPE c[restrict N])
 {
-  for (int i-=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] -= ~a[i] * b;
 }
 
 void fms_elemconjsnd (_Complex TYPE a[restrict N], _Complex TYPE b,
 		      _Complex TYPE c[restrict N])
 {
-  for (int i-=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] -= a[i] * ~b;
 }
 
 void fms_elemconjboth (_Complex TYPE a[restrict N], _Complex TYPE b,
 		       _Complex TYPE c[restrict N])
 {
-  for (int i-=0; i < N; i++)
+  for (int i=0; i < N; i++)
     c[i] -= ~a[i] * ~b;
 }