960312-1.x: New file, must pass -mshort for HC11/HC12 (asm needs two int registers).

* gcc.c-torture/execute/960312-1.x: New file, must pass -mshort
	for HC11/HC12 (asm needs two int registers).
	* gcc.c-torture/compile/20020312-1.x: New file, don't execute on
	HC11/HC12 because the test uses an asm which needs two 32-bit
	registers.

From-SVN: r63697
This commit is contained in:
Stephane Carrez 2003-03-02 23:34:02 +01:00 committed by Stephane Carrez
parent ef1ecf87a6
commit 3595b91fd2
3 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
* gcc.c-torture/execute/960312-1.x: New file, must pass -mshort
for HC11/HC12 (asm needs two int registers).
* gcc.c-torture/compile/20020312-1.x: New file, don't execute on
HC11/HC12 because the test uses an asm which needs two 32-bit
registers.
2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
* gcc.c-torture/compile/920501-12.x: New file, must pass -mshort

View File

@ -0,0 +1,6 @@
# This does not compile on HC11/HC12 due to the asm which requires
# two 32-bit registers.
if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
return 1
}
return 0

View File

@ -0,0 +1,7 @@
# This test fails on HC11/HC12 when it is compiled without -mshort because
# is uses an asm that requires two 32-bit registers (int). It passes
# when using -mshort because there are enough registers; force -mshort.
if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
set options "-mshort"
}
return 0