[committed,2/5] arc: Update/remove ARC specific tests

Message ID 20231005114345.1707504-2-claziss@gmail.com
State Unresolved
Headers
Series [committed,1/5] arc: Remove unused/incomplete alignment assembly annotation. |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

Claudiu Zissulescu Ianculescu Oct. 5, 2023, 11:43 a.m. UTC
  Update tests and remove old mtune-* tests.

gcc/testsuite

	* gcc.target/arc/add_n-combine.c: Recognize add2 instruction.
	* gcc.target/arc/firq-4.c: FP register is a temp reg. Update test.
	* gcc.target/arc/firq-6.c: Likewise.
	* gcc.target/arc/mtune-ARC600.c: Remove test.
	* gcc.target/arc/mtune-ARC601.c: Likewise.
	* gcc.target/arc/mtune-ARC700-xmac: Likewise.
	* gcc.target/arc/mtune-ARC700.c: Likewise.
	* gcc.target/arc/mtune-ARC725D.c: Likewise.
	* gcc.target/arc/mtune-ARC750D.c: Likewise.
	* gcc.target/arc/uncached-7.c: Set it to XFAIL.

Signed-off-by: Claudiu Zissulescu <claziss@gmail.com>
---
 gcc/testsuite/gcc.target/arc/add_n-combine.c   | 2 +-
 gcc/testsuite/gcc.target/arc/firq-4.c          | 1 -
 gcc/testsuite/gcc.target/arc/firq-6.c          | 1 -
 gcc/testsuite/gcc.target/arc/mtune-ARC600.c    | 4 ----
 gcc/testsuite/gcc.target/arc/mtune-ARC601.c    | 4 ----
 gcc/testsuite/gcc.target/arc/mtune-ARC700-xmac | 4 ----
 gcc/testsuite/gcc.target/arc/mtune-ARC700.c    | 4 ----
 gcc/testsuite/gcc.target/arc/mtune-ARC725D.c   | 4 ----
 gcc/testsuite/gcc.target/arc/mtune-ARC750D.c   | 4 ----
 gcc/testsuite/gcc.target/arc/uncached-7.c      | 2 +-
 10 files changed, 2 insertions(+), 28 deletions(-)
 delete mode 100644 gcc/testsuite/gcc.target/arc/mtune-ARC600.c
 delete mode 100644 gcc/testsuite/gcc.target/arc/mtune-ARC601.c
 delete mode 100644 gcc/testsuite/gcc.target/arc/mtune-ARC700-xmac
 delete mode 100644 gcc/testsuite/gcc.target/arc/mtune-ARC700.c
 delete mode 100644 gcc/testsuite/gcc.target/arc/mtune-ARC725D.c
 delete mode 100644 gcc/testsuite/gcc.target/arc/mtune-ARC750D.c
  

Patch

diff --git a/gcc/testsuite/gcc.target/arc/add_n-combine.c b/gcc/testsuite/gcc.target/arc/add_n-combine.c
index 84e261ece8f..fd311b3839c 100644
--- a/gcc/testsuite/gcc.target/arc/add_n-combine.c
+++ b/gcc/testsuite/gcc.target/arc/add_n-combine.c
@@ -46,5 +46,5 @@  void f() {
 }
 
 /* { dg-final { scan-assembler "@at1\\+1" } } */
-/* { dg-final { scan-assembler "@at2\\+2" } } */
+/* { dg-final { scan-assembler "add2" } } */
 /* { dg-final { scan-assembler "add3" } } */
diff --git a/gcc/testsuite/gcc.target/arc/firq-4.c b/gcc/testsuite/gcc.target/arc/firq-4.c
index 969ee796f03..cd939bf8ca3 100644
--- a/gcc/testsuite/gcc.target/arc/firq-4.c
+++ b/gcc/testsuite/gcc.target/arc/firq-4.c
@@ -28,4 +28,3 @@  handler1 (void)
 
 /* { dg-final { scan-assembler-not "fp,\\\[sp" } } */
 /* { dg-final { scan-assembler-not "push.*fp" } } */
-/* { dg-final { scan-assembler "mov_s.*fp,sp" } } */
diff --git a/gcc/testsuite/gcc.target/arc/firq-6.c b/gcc/testsuite/gcc.target/arc/firq-6.c
index 9421200d630..df04e46dd31 100644
--- a/gcc/testsuite/gcc.target/arc/firq-6.c
+++ b/gcc/testsuite/gcc.target/arc/firq-6.c
@@ -18,4 +18,3 @@  handler1 (void)
 		  "r25", "fp");
 }
 /* { dg-final { scan-assembler-not "(s|l)(t|d)d.*r\[0-9\]+,\\\[sp,\[0-9\]+\\\]" } } */
-/* { dg-final { scan-assembler "mov_s.*fp,sp" } } */
diff --git a/gcc/testsuite/gcc.target/arc/mtune-ARC600.c b/gcc/testsuite/gcc.target/arc/mtune-ARC600.c
deleted file mode 100644
index a483d1435ca..00000000000
--- a/gcc/testsuite/gcc.target/arc/mtune-ARC600.c
+++ /dev/null
@@ -1,4 +0,0 @@ 
-/* { dg-do compile } */
-/* { dg-options "-mtune=ARC600" } */
-
-/* { dg-final { scan-assembler ".cpu ARC700" } } */
diff --git a/gcc/testsuite/gcc.target/arc/mtune-ARC601.c b/gcc/testsuite/gcc.target/arc/mtune-ARC601.c
deleted file mode 100644
index ed57bd7092d..00000000000
--- a/gcc/testsuite/gcc.target/arc/mtune-ARC601.c
+++ /dev/null
@@ -1,4 +0,0 @@ 
-/* { dg-do compile } */
-/* { dg-options "-mtune=ARC601" } */
-
-/* { dg-final { scan-assembler ".cpu ARC700" } } */
diff --git a/gcc/testsuite/gcc.target/arc/mtune-ARC700-xmac b/gcc/testsuite/gcc.target/arc/mtune-ARC700-xmac
deleted file mode 100644
index 2f1e137be4d..00000000000
--- a/gcc/testsuite/gcc.target/arc/mtune-ARC700-xmac
+++ /dev/null
@@ -1,4 +0,0 @@ 
-/* { dg-do compile } */
-/* { dg-options "-mtune=ARC700-xmac" } */
-
-/* { dg-final { scan-assembler ".cpu ARC700" } } */
diff --git a/gcc/testsuite/gcc.target/arc/mtune-ARC700.c b/gcc/testsuite/gcc.target/arc/mtune-ARC700.c
deleted file mode 100644
index 851ea7305e0..00000000000
--- a/gcc/testsuite/gcc.target/arc/mtune-ARC700.c
+++ /dev/null
@@ -1,4 +0,0 @@ 
-/* { dg-do compile } */
-/* { dg-options "-mtune=ARC700" } */
-
-/* { dg-final { scan-assembler ".cpu ARC700" } } */
diff --git a/gcc/testsuite/gcc.target/arc/mtune-ARC725D.c b/gcc/testsuite/gcc.target/arc/mtune-ARC725D.c
deleted file mode 100644
index e2aa4846291..00000000000
--- a/gcc/testsuite/gcc.target/arc/mtune-ARC725D.c
+++ /dev/null
@@ -1,4 +0,0 @@ 
-/* { dg-do compile } */
-/* { dg-options "-mtune=ARC725D" } */
-
-/* { dg-final { scan-assembler ".cpu ARC700" } } */
diff --git a/gcc/testsuite/gcc.target/arc/mtune-ARC750D.c b/gcc/testsuite/gcc.target/arc/mtune-ARC750D.c
deleted file mode 100644
index 20923300ee1..00000000000
--- a/gcc/testsuite/gcc.target/arc/mtune-ARC750D.c
+++ /dev/null
@@ -1,4 +0,0 @@ 
-/* { dg-do compile } */
-/* { dg-options "-mtune=ARC750D" } */
-
-/* { dg-final { scan-assembler ".cpu ARC700" } } */
diff --git a/gcc/testsuite/gcc.target/arc/uncached-7.c b/gcc/testsuite/gcc.target/arc/uncached-7.c
index 4001b8bd821..23e5fe23b04 100644
--- a/gcc/testsuite/gcc.target/arc/uncached-7.c
+++ b/gcc/testsuite/gcc.target/arc/uncached-7.c
@@ -8,4 +8,4 @@  void s_acc(void)
     s[10] = 15;
 }
 
-/* { dg-final { scan-assembler-times "st\.di" 1 } } */
+/* { dg-final { scan-assembler-times "st\.di" 1 { xfail *-*-* } } } */