aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorJosef Zlomek <zlomekj@suse.cz>2003-10-31 15:09:51 +0100
committerJosef Zlomek <zlomek@gcc.gnu.org>2003-10-31 14:09:51 +0000
commit739e6d58e7e2dc15f850da10936102e22924347a (patch)
tree373f0db956a76b7f8118dd716265dde3a9ddd34a /gcc/testsuite
parent5d693491f01a654997620056407055080db63e66 (diff)
downloadgcc-739e6d58e7e2dc15f850da10936102e22924347a.zip
gcc-739e6d58e7e2dc15f850da10936102e22924347a.tar.gz
gcc-739e6d58e7e2dc15f850da10936102e22924347a.tar.bz2
20031031-1.c: New test.
PR/11640 * gcc.c-torture/compile/20031031-1.c: New test. From-SVN: r73143
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20031031-1.c36
2 files changed, 41 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index b65e829..cdb44bf 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-31 Josef Zlomek <zlomekj@suse.cz>
+
+ PR/11640
+ * gcc.c-torture/compile/20031031-1.c: New test.
+
2003-10-31 Richard Earnshaw <rearnsha@arm.com>
* g77.dg/bprob/bprob.exp: Disable test on arm-elf configs.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20031031-1.c b/gcc/testsuite/gcc.c-torture/compile/20031031-1.c
new file mode 100644
index 0000000..e641b78
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/20031031-1.c
@@ -0,0 +1,36 @@
+/* PR/11640 */
+
+int
+internal_insn_latency (int insn_code, int insn2_code)
+{
+ switch (insn_code)
+ {
+ case 256:
+ switch (insn2_code)
+ {
+ case 267:
+ return 8;
+ case 266:
+ return 8;
+ case 265:
+ return 8;
+ case 264:
+ return 8;
+ case 263:
+ return 8;
+ }
+ break;
+ case 273:
+ switch (insn2_code)
+ {
+ case 267:
+ return 5;
+ case 266:
+ return 5;
+ case 277:
+ return 3;
+ }
+ break;
+ }
+ return 0;
+}