aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/gcc.dg/guality/asm-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/gcc.dg/guality/asm-1.c')
-rw-r--r--gcc-4.8.1/gcc/testsuite/gcc.dg/guality/asm-1.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/gcc.dg/guality/asm-1.c b/gcc-4.8.1/gcc/testsuite/gcc.dg/guality/asm-1.c
deleted file mode 100644
index e9cf4a167..000000000
--- a/gcc-4.8.1/gcc/testsuite/gcc.dg/guality/asm-1.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-g" } */
-
-#include "../nop.h"
-
-struct A { int x; unsigned short y; char z[64]; };
-
-void __attribute__((noinline))
-foo (struct A *p, char *q)
-{
- int f = &p->z[p->y] - q;
- asm volatile (NOP);
- asm volatile (NOP : : "g" (f)); /* { dg-final { gdb-test 14 "f" "14" } } */
- asm volatile ("" : : "g" (p), "g" (q));
-}
-
-int
-main ()
-{
- struct A a;
- __builtin_memset (&a, 0, sizeof a);
- a.y = 26;
- a.x = 12;
- asm volatile ("" : : "r" (&a) : "memory");
- foo (&a, &a.z[a.x]);
- return 0;
-}