diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-31 19:51:17 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-31 19:51:17 +0000 |
commit | c8cd180539a9197a2dee3c57623a69a87b04da0c (patch) | |
tree | 23a10c4a00c941e09d8222480d6289afc911bfc3 /gcc/testsuite/gcc.dg/pr21255-4.c | |
parent | d3d7bd46ab93a3cbbb0937f125dcac88aa847a1c (diff) | |
download | gcc-c8cd180539a9197a2dee3c57623a69a87b04da0c.tar.gz |
2005-08-31 J"orn Rennecke <joern.rennecke@st.com>
gcc:
PR target/21255
* sh.c (print_operand, %R and %S): Add handling of floating point
registers, memory, constants and invalid operands.
gcc/testsuite:
PR target/21255
* gcc.dg/pr21255-1.c: New test.
* gcc.dg/pr21255-2-mb.c: Likewise.
* gcc.dg/pr21255-2-ml.c: Likewise.
* gcc.dg/pr21255-3.c: Likewise.
* gcc.dg/pr21255-4.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103700 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr21255-4.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr21255-4.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr21255-4.c b/gcc/testsuite/gcc.dg/pr21255-4.c new file mode 100644 index 00000000000..72a632c9dc5 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr21255-4.c @@ -0,0 +1,13 @@ +/* { dg-do compile { target "sh*-*-*" } } */ +/* { dg-options "-O2 -fomit-frame-pointer" } */ + +double +f () +{ + double r; + + asm ("mov %S1,%S0; mov %R1,%R0" : "=r" (r) : "i" (f)); +/* { dg-error "invalid operand to %S" "" {target "sh*-*-*" } 9 } */ +/* { dg-error "invalid operand to %R" "" {target "sh*-*-*" } 9 } */ + return r; +} |