aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/gcc.dg/pr46685.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/gcc.dg/pr46685.c')
-rw-r--r--gcc-4.8.1/gcc/testsuite/gcc.dg/pr46685.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/gcc.dg/pr46685.c b/gcc-4.8.1/gcc/testsuite/gcc.dg/pr46685.c
deleted file mode 100644
index 6277bcc2f..000000000
--- a/gcc-4.8.1/gcc/testsuite/gcc.dg/pr46685.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/* { dg-do compile } */
-/* { dg-require-effective-target freorder } */
-/* { dg-require-effective-target fpic } */
-/* { dg-options "-O2 -freorder-blocks-and-partition -fpic" } */
-
-__attribute__((noinline, noclone))
-void bar (void *x)
-{
- asm volatile ("" : : "r" (x) : "memory");
-}
-
-__attribute__((noinline, noclone))
-void baz (void)
-{
- asm volatile ("" : : : "memory");
-}
-
-__attribute__((noinline, noclone))
-int foo (int x)
-{
- __label__ lab;
- if (__builtin_expect (x, 0))
- {
- lab:
- baz ();
- return 2;
- }
- bar (&&lab);
- return 1;
-}
-
-int
-main (void)
-{
- int x, i;
- asm volatile ("" : "=r" (x) : "0" (0));
- for (i = 0; i < 1000000; i++)
- foo (x);
- return 0;
-}