+2014-06-23 Kai Tietz <ktietz@redhat.com>
+
+ * gcc.target/i386/indjmp-1.c: New test.
+
2014-06-23 Andrew Pinski <apinski@cavium.com>
* gcc.c-torture/compile/20140723-1.c: New testcase.
--- /dev/null
+/* { dg-do compile { target ia32 } } */
+/* { dg-options "-O2" } */
+
+#define ADVANCE_AND_DISPATCH() goto *addresses[*pc++]
+
+void
+Interpret(const unsigned char *pc)
+{
+ static const void *const addresses[] = {
+ &&l0, &&l1, &&l2
+ };
+
+l0:
+ ADVANCE_AND_DISPATCH();
+
+l1:
+ ADVANCE_AND_DISPATCH();
+
+l2:
+ return;
+}
+
+/* { dg-final { scan-assembler-not "jmp\[ \t\]*.%eax" } } */