File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed
gcc/testsuite/gcc.target/arm Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change 2
2
/* { dg-do compile } */
3
3
/* { dg-options "-mthumb -Os" } */
4
4
/* { dg-require-effective-target arm_thumb2_ok } */
5
+ /* { dg-final { check-function-bodies "**" "" } } */
5
6
6
7
volatile int g_k ;
7
8
extern void bar (int , int , int , int );
8
9
10
+ /*
11
+ ** foo:
12
+ ** ...
13
+ ** (
14
+
15
+ Below block is for non-armv8.1-m.main
16
+ ** lsls r[0-9]+, r[0-9]+, #29
17
+ ** it mi
18
+ ** addmi r2, r2, #1
19
+
20
+ ** |
21
+
22
+ Below block is for armv8.1-m.main
23
+ ** tst r[0-9]+, #4
24
+ ** csinc r2, r2, r2, eq
25
+
26
+ ** )
27
+ ** bl bar
28
+ ** ...
29
+ */
9
30
int foo (int a , int b , int c , int d )
10
31
{
11
32
if (g_k & 4 ) c ++ ;
12
33
bar (a , b , c , d );
13
34
return 0 ;
14
35
}
15
-
16
- /* { dg-final { scan-assembler-times "lsls.*#29" 1 } } */
17
- /* { dg-final { scan-assembler-not "tst" } } */
You can’t perform that action at this time.
0 commit comments