Commit 31f1fa4e by Dimitar Dimitrov Committed by Dimitar Dimitrov

testsuite: Add check for overflowed IMEM region to testsuite

gcc/testsuite/ChangeLog:

2019-06-12  Dimitar Dimitrov  <dimitar@dinux.eu>

	* lib/gcc-dg.exp: Bail on region overflow for tiny targets.
	* lib/target-utils.exp: Ditto.
	* lib/target-supports.exp: Declare PRU target as tiny.

From-SVN: r272206
parent 506bd02c
2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu> 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
* lib/gcc-dg.exp: Bail on region overflow for tiny targets.
* lib/target-utils.exp: Ditto.
* lib/target-supports.exp: Declare PRU target as tiny.
2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
* gcc.target/pru/abi-arg-struct.c: New test. * gcc.target/pru/abi-arg-struct.c: New test.
* gcc.target/pru/ashiftrt.c: New test. * gcc.target/pru/ashiftrt.c: New test.
* gcc.target/pru/builtins-1.c: New test. * gcc.target/pru/builtins-1.c: New test.
......
...@@ -8765,6 +8765,11 @@ proc check_effective_target_tiny {} { ...@@ -8765,6 +8765,11 @@ proc check_effective_target_tiny {} {
&& [check_effective_target_avr_tiny] } { && [check_effective_target_avr_tiny] } {
return 1 return 1
} }
# PRU Program Counter is 16-bits, and trampolines are not supported.
# Hence directly declare as a tiny target.
if [istarget pru-*-*] {
return 1
}
return 0 return 0
}] }]
} }
......
...@@ -35,6 +35,10 @@ proc ${tool}_check_unsupported_p { output } { ...@@ -35,6 +35,10 @@ proc ${tool}_check_unsupported_p { output } {
&& [check_effective_target_tiny] } { && [check_effective_target_tiny] } {
return "memory full" return "memory full"
} }
if { [regexp "(^|\n)\[^\n\]*: region \[^\n\]* overflowed" $output]
&& [check_effective_target_tiny] } {
return "memory full"
}
if { [istarget spu-*-*] && \ if { [istarget spu-*-*] && \
[string match "*exceeds local store*" $output] } { [string match "*exceeds local store*" $output] } {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment