summaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2008-07-15 12:52:56 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2008-07-15 12:52:56 +0000
commit280e075d844aa60cbfc566c53c949d6d46f8354c (patch)
tree3104440e046416750f78f036d0fce5f546443487 /gcc/testsuite
parent15f0cb0420dbfcdc494db182d5e2d2dc43d889c1 (diff)
downloadgcc-280e075d844aa60cbfc566c53c949d6d46f8354c.tar.gz
2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR target/31568 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use gcc_assert, instead call output_operand_lossage. 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com> PR target/31568 * gcc.target/powerpc/asm-y.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137837 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.target/powerpc/asm-y.c11
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 3e7162570e1..4526d9fcb83 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
+
+ PR target/31568
+ * gcc.target/powerpc/asm-y.c: New testcase.
+
2008-07-14 Eric Botcazou <ebotcazou@adacore.com>
* case_optimization1.ad[sb]: New test.
diff --git a/gcc/testsuite/gcc.target/powerpc/asm-y.c b/gcc/testsuite/gcc.target/powerpc/asm-y.c
new file mode 100644
index 00000000000..7d5a6a61795
--- /dev/null
+++ b/gcc/testsuite/gcc.target/powerpc/asm-y.c
@@ -0,0 +1,11 @@
+/* { dg-do compile } */
+/* { dg-options "-O1" } */
+
+/* Test that %yN does not cause an internal error if used incorrectly. */
+
+int f(int *a)
+{
+ asm ("#%y0" : "=m"(a[2])); /* { dg-error "try using the 'Z' constraint" } */
+ asm ("#%y0" : "=m"(a[1])); /* { dg-error "try using the 'Z' constraint" } */
+ asm ("#%y0" : "=m"(a[0]));
+}