Commit d029b02
committed
arc64: gdb: Add support of prologue tests for HS5x
Remove tests for unsupported SUB_S c,b,u3 instruction and
mark LP tests as xfail for HS5x targets. LP is supported
only by HS5x in ARCv3 but it's not implemented in GNU
tools yet.
In addition make ENTER tests save 13 general purpose registers
instead of 14. ARCv3's ENTER instruction can save GPRs from
R14 to R27 (ARCv2's one saves from R13 to R26). The last one
is FP (frame pointer) and it's possible to save FP twice:
enter_s (16 + 14)
16 stands for FP bit and 14 stands for R14-R27 set. That
behavior is documented in PRM:
This use case is not illegal but serves no useful purpose.
However, it's not recommended to use ENTER that way and saving
FP twice can break GDB's frame unwinder (information about saved
registers may be incomplete). It's necessary to rewrite
unwinder's logic to make him detect FP which is saved twice.
Signed-off-by: Yuriy Kolerov <[email protected]>1 parent 34fbbfc commit d029b02
File tree
2 files changed
+83
-8
lines changed- gdb/testsuite/gdb.arch
2 files changed
+83
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
158 | 160 | | |
| 161 | + | |
159 | 162 | | |
160 | 163 | | |
161 | 164 | | |
162 | 165 | | |
163 | 166 | | |
164 | 167 | | |
165 | 168 | | |
| 169 | + | |
166 | 170 | | |
167 | 171 | | |
168 | 172 | | |
| |||
277 | 281 | | |
278 | 282 | | |
279 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
280 | 287 | | |
| 288 | + | |
281 | 289 | | |
282 | 290 | | |
283 | 291 | | |
| |||
415 | 423 | | |
416 | 424 | | |
417 | 425 | | |
| 426 | + | |
| 427 | + | |
418 | 428 | | |
| 429 | + | |
419 | 430 | | |
420 | 431 | | |
421 | 432 | | |
| |||
430 | 441 | | |
431 | 442 | | |
432 | 443 | | |
| 444 | + | |
433 | 445 | | |
434 | 446 | | |
435 | 447 | | |
| |||
660 | 672 | | |
661 | 673 | | |
662 | 674 | | |
| 675 | + | |
663 | 676 | | |
| 677 | + | |
664 | 678 | | |
665 | 679 | | |
666 | 680 | | |
667 | 681 | | |
668 | 682 | | |
669 | 683 | | |
670 | 684 | | |
| 685 | + | |
671 | 686 | | |
672 | 687 | | |
673 | 688 | | |
| |||
844 | 859 | | |
845 | 860 | | |
846 | 861 | | |
| 862 | + | |
847 | 863 | | |
| 864 | + | |
848 | 865 | | |
849 | 866 | | |
850 | 867 | | |
| |||
862 | 879 | | |
863 | 880 | | |
864 | 881 | | |
| 882 | + | |
865 | 883 | | |
| 884 | + | |
866 | 885 | | |
867 | 886 | | |
868 | 887 | | |
| |||
881 | 900 | | |
882 | 901 | | |
883 | 902 | | |
| 903 | + | |
884 | 904 | | |
| 905 | + | |
885 | 906 | | |
886 | 907 | | |
887 | 908 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
36 | 57 | | |
37 | 58 | | |
38 | 59 | | |
| |||
109 | 130 | | |
110 | 131 | | |
111 | 132 | | |
112 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
113 | 142 | | |
114 | 143 | | |
115 | 144 | | |
| |||
120 | 149 | | |
121 | 150 | | |
122 | 151 | | |
123 | | - | |
124 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
125 | 162 | | |
126 | 163 | | |
127 | 164 | | |
128 | | - | |
129 | | - | |
130 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
131 | 174 | | |
132 | 175 | | |
133 | 176 | | |
| |||
154 | 197 | | |
155 | 198 | | |
156 | 199 | | |
157 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
158 | 209 | | |
159 | 210 | | |
160 | 211 | | |
| |||
174 | 225 | | |
175 | 226 | | |
176 | 227 | | |
177 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
178 | 232 | | |
179 | 233 | | |
180 | 234 | | |
| |||
0 commit comments