]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PATCH 2/3] RISC-V: testsuite: Make cmo tests LTO safe
authorChristoph Müllner <christoph.muellner@vrull.eu>
Tue, 14 May 2024 15:20:18 +0000 (09:20 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Tue, 14 May 2024 15:20:18 +0000 (09:20 -0600)
Let's add '\t' to the instruction match pattern to avoid false positive
matches when compiling with -flto.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/cmo-zicbom-1.c: Add \t to test pattern.
* gcc.target/riscv/cmo-zicbom-2.c: Likewise.
* gcc.target/riscv/cmo-zicbop-1.c: Likewise.
* gcc.target/riscv/cmo-zicbop-2.c: Likewise.
* gcc.target/riscv/cmo-zicboz-1.c: Likewise.
* gcc.target/riscv/cmo-zicboz-2.c: Likewise.

gcc/testsuite/gcc.target/riscv/cmo-zicbom-1.c
gcc/testsuite/gcc.target/riscv/cmo-zicbom-2.c
gcc/testsuite/gcc.target/riscv/cmo-zicbop-1.c
gcc/testsuite/gcc.target/riscv/cmo-zicbop-2.c
gcc/testsuite/gcc.target/riscv/cmo-zicboz-1.c
gcc/testsuite/gcc.target/riscv/cmo-zicboz-2.c

index 6341f7874d3efe5135453932385d8fb3f304d091..02c38e201fae8435942b4071546f245891fc72b1 100644 (file)
@@ -24,6 +24,6 @@ void foo3()
     __builtin_riscv_zicbom_cbo_inval((void*)0x111);
 }
 
-/* { dg-final { scan-assembler-times "cbo.clean" 3 } } */
-/* { dg-final { scan-assembler-times "cbo.flush" 3 } } */
-/* { dg-final { scan-assembler-times "cbo.inval" 3 } } */
+/* { dg-final { scan-assembler-times "cbo.clean\t" 3 } } */
+/* { dg-final { scan-assembler-times "cbo.flush\t" 3 } } */
+/* { dg-final { scan-assembler-times "cbo.inval\t" 3 } } */
index a04f106c8b0ebc52031e7c769dcb072bb12d44f7..040b96952bc369238c67e89c650655139d264055 100644 (file)
@@ -24,6 +24,6 @@ void foo3()
     __builtin_riscv_zicbom_cbo_inval((void*)0x111);
 }
 
-/* { dg-final { scan-assembler-times "cbo.clean" 3 } } */
-/* { dg-final { scan-assembler-times "cbo.flush" 3 } } */
-/* { dg-final { scan-assembler-times "cbo.inval" 3 } } */
+/* { dg-final { scan-assembler-times "cbo.clean\t" 3 } } */
+/* { dg-final { scan-assembler-times "cbo.flush\t" 3 } } */
+/* { dg-final { scan-assembler-times "cbo.inval\t" 3 } } */
index c5d78c1763d3356cd5748cff05d0606444a33f95..97181154d85b436e950d43cfff9cbd5875621c14 100644 (file)
@@ -18,6 +18,6 @@ int foo1()
   return __builtin_riscv_zicbop_cbo_prefetchi(1);
 }
 
-/* { dg-final { scan-assembler-times "prefetch.i" 1 } } */
-/* { dg-final { scan-assembler-times "prefetch.r" 4 } } */
-/* { dg-final { scan-assembler-times "prefetch.w" 4 } } */
+/* { dg-final { scan-assembler-times "prefetch.i\t" 1 } } */
+/* { dg-final { scan-assembler-times "prefetch.r\t" 4 } } */
+/* { dg-final { scan-assembler-times "prefetch.w\t" 4 } } */
index 6576365b39cae4f6ee05ef1297a47b23079fd767..4871a97b21aaf59ced315ff7464c882d68306cce 100644 (file)
@@ -18,6 +18,6 @@ int foo1()
   return __builtin_riscv_zicbop_cbo_prefetchi(1);
 }
 
-/* { dg-final { scan-assembler-times "prefetch.i" 1 } } */
-/* { dg-final { scan-assembler-times "prefetch.r" 4 } } */
-/* { dg-final { scan-assembler-times "prefetch.w" 4 } } */ 
+/* { dg-final { scan-assembler-times "prefetch.i\t" 1 } } */
+/* { dg-final { scan-assembler-times "prefetch.r\t" 4 } } */
+/* { dg-final { scan-assembler-times "prefetch.w\t" 4 } } */ 
index 5eb78ab94b5a5b21e8993c903786485b4be0c588..63b8782bf89ee8d21de692de777c7cae19e2528f 100644 (file)
@@ -10,4 +10,4 @@ void foo1()
     __builtin_riscv_zicboz_cbo_zero((void*)0x121);
 }
 
-/* { dg-final { scan-assembler-times "cbo.zero" 3 } } */ 
+/* { dg-final { scan-assembler-times "cbo.zero\t" 3 } } */ 
index fdc9c719669c7935eeb9b8584e99a13813c77381..cc3bd505ec0978db54cbfafe9969360a7d9d3c95 100644 (file)
@@ -10,4 +10,4 @@ void foo1()
     __builtin_riscv_zicboz_cbo_zero((void*)0x121);
 }
 
-/* { dg-final { scan-assembler-times "cbo.zero" 3 } } */ 
+/* { dg-final { scan-assembler-times "cbo.zero\t" 3 } } */