arc: Update arc specific tests

Update assembly output test pattern. Take into consideration also for
which platform we do execute the test (baremetal or linux).

gcc/testsuite/ChangeLog:

	* gcc.target/arc/add_n-combine.c: Update test patterns.
	* gcc.target/arc/builtin_eh.c: Update test for linux platforms.
	* gcc.target/arc/mul64-1.c: Disable this test while running on
	linux.
	* gcc.target/arc/tls-gd.c: Update matching patterns.
	* gcc.target/arc/tls-ie.c: Likewise.
	* gcc.target/arc/tls-ld.c: Likewise.
	* gcc.target/arc/uncached-8.c: Likewise.

Signed-off-by: Claudiu Zissulescu <claziss@synopsys.com>
This commit is contained in:
Claudiu Zissulescu 2021-11-16 11:41:16 +02:00
parent 23125fab7b
commit d699f03720
7 changed files with 15 additions and 13 deletions

View File

@ -45,6 +45,6 @@ void f() {
a(at3.bn[bu]);
}
/* { dg-final { scan-assembler "add1" } } */
/* { dg-final { scan-assembler "add2" } } */
/* { dg-final { scan-assembler "@at1\\+1" } } */
/* { dg-final { scan-assembler "@at2\\+2" } } */
/* { dg-final { scan-assembler "add3" } } */

View File

@ -19,4 +19,5 @@ foo (int x)
/* { dg-final { scan-assembler "r13" } } */
/* { dg-final { scan-assembler "r0" } } */
/* { dg-final { scan-assembler "fp" } } */
/* { dg-final { scan-assembler "fp,64" } } */
/* { dg-final { scan-assembler "fp,64" { target { *-elf32-* } } } } */
/* { dg-final { scan-assembler "fp,60" { target { *-linux-* } } } } */

View File

@ -1,5 +1,5 @@
/* { dg-do compile } */
/* { dg-skip-if "MUL64 is ARC600 extension." { ! { clmcpu } } } */
/* { dg-skip-if "MUL64 is ARC600 extension." { { ! { clmcpu } } || *-linux-* } } */
/* { dg-options "-O2 -mmul64 -mbig-endian -mcpu=arc600" } */
/* Check if mlo/mhi registers are correctly layout when we compile for

View File

@ -13,5 +13,5 @@ int *ae2 (void)
return &e2;
}
/* { dg-final { scan-assembler "add r0,pcl,@e2@tlsgd" } } */
/* { dg-final { scan-assembler "bl @__tls_get_addr@plt" } } */
/* { dg-final { scan-assembler "add\\s+r0,pcl,@e2@tlsgd" } } */
/* { dg-final { scan-assembler "bl\\s+@__tls_get_addr@plt" } } */

View File

@ -13,5 +13,5 @@ int *ae2 (void)
return &e2;
}
/* { dg-final { scan-assembler "ld r0,\\\[pcl,@e2@tlsie\\\]" } } */
/* { dg-final { scan-assembler "add_s r0,r0,r25" } } */
/* { dg-final { scan-assembler "ld\\s+r0,\\\[pcl,@e2@tlsie\\\]" } } */
/* { dg-final { scan-assembler "add_s\\s+r0,r0,r25" } } */

View File

@ -13,6 +13,6 @@ int *ae2 (void)
return &e2;
}
/* { dg-final { scan-assembler "add r0,pcl,@.tbss@tlsgd" } } */
/* { dg-final { scan-assembler "bl @__tls_get_addr@plt" } } */
/* { dg-final { scan-assembler "add_s r0,r0,@e2@dtpoff" } } */
/* { dg-final { scan-assembler "add\\s+r0,pcl,@.tbss@tlsgd" } } */
/* { dg-final { scan-assembler "bl\\s+@__tls_get_addr@plt" } } */
/* { dg-final { scan-assembler "add_s\\s+r0,r0,@e2@dtpoff" } } */

View File

@ -29,5 +29,6 @@ void bar (void)
x.c.b.a = 10;
}
/* { dg-final { scan-assembler-times "st\.di" 1 } } */
/* { dg-final { scan-assembler-times "st\.as\.di" 1 } } */
/* { dg-final { scan-assembler-times "st\.di" 2 { target { *-linux-* } } } } */
/* { dg-final { scan-assembler-times "st\.di" 1 { target { *-elf32-* } } } } */
/* { dg-final { scan-assembler-times "st\.as\.di" 1 { target { *-elf32-* } } } } */