summaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorJulia Koval <julia.koval@intel.com>2015-09-14 11:18:34 +0300
committerJulia Koval <julia.koval@intel.com>2015-09-16 13:40:02 +0300
commitf12e0195ee507b833b09e7cdfde63c31457ede28 (patch)
tree3273d4a95c2c6ae33b54b3c6b4a07739208d3512 /gcc/testsuite
parent31e4f4c1c1cb78e64cdb52446df1551fa456b602 (diff)
downloadgcc-jkoval/interrupt/master.tar.gz
1. Remove red zone supportjkoval/interrupt/master
2. Fix formatting errors
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/gcc.target/i386/interrupt-iamcu.c16
-rw-r--r--gcc/testsuite/gcc.target/i386/interrupt-redzone.c10
-rw-r--r--gcc/testsuite/gcc.target/i386/interrupt-switch-abi.c12
-rw-r--r--gcc/testsuite/gcc.target/i386/interrupt.c16
4 files changed, 24 insertions, 30 deletions
diff --git a/gcc/testsuite/gcc.target/i386/interrupt-iamcu.c b/gcc/testsuite/gcc.target/i386/interrupt-iamcu.c
index 9c9d266cec2..5ade7073c5e 100644
--- a/gcc/testsuite/gcc.target/i386/interrupt-iamcu.c
+++ b/gcc/testsuite/gcc.target/i386/interrupt-iamcu.c
@@ -7,15 +7,17 @@ extern int bar (int);
void foo ()
{
int a,b,c,d,e,f,i;
- a = bar(5);
- b = bar(a);
- c = bar(b);
- d = bar(c);
- e = bar(d);
- f = bar(e);
+ a = bar (5);
+ b = bar (a);
+ c = bar (b);
+ d = bar (c);
+ e = bar (d);
+ f = bar (e);
for (i = 1; i < 10; i++)
{
- a += bar (a + i) + bar(b + i) + bar(c + i) + bar(d + i) + bar(e + i) + bar(f+i);
+ a += bar (a + i) + bar (b + i) +
+ bar (c + i) + bar (d + i) +
+ bar (e + i) + bar (f+i);
}
}
/* { dg-final { scan-assembler "push.\t%.ax" } }*/
diff --git a/gcc/testsuite/gcc.target/i386/interrupt-redzone.c b/gcc/testsuite/gcc.target/i386/interrupt-redzone.c
deleted file mode 100644
index d59eb663966..00000000000
--- a/gcc/testsuite/gcc.target/i386/interrupt-redzone.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/* { dg-do compile { target { ! { ia32 } } } } */
-/* { dg-options "-mabi=sysv" } */
-extern int a;
-void __attribute__((interrupt)) bar ()
- {
- a = 4;
- }
-
-/* { dg-final { scan-assembler "addq\t\\\$-?128, %rsp" } } */
-/* { dg-final { scan-assembler "subq\t\\\$-?128, %rsp" } } */
diff --git a/gcc/testsuite/gcc.target/i386/interrupt-switch-abi.c b/gcc/testsuite/gcc.target/i386/interrupt-switch-abi.c
index fe26a38ae2a..8725e3e7406 100644
--- a/gcc/testsuite/gcc.target/i386/interrupt-switch-abi.c
+++ b/gcc/testsuite/gcc.target/i386/interrupt-switch-abi.c
@@ -1,13 +1,13 @@
/* { dg-do compile } */
-extern void bar(int);
+extern void bar (int);
-void f1(){ bar(1); }
+void f1 (){ bar (1); }
__attribute__((interrupt))
-void f2(){ bar(2); }
-void f3(){ bar(3); }
+void f2 (){ bar (2); }
+void f3 (){ bar (3); }
__attribute__((exception))
-void f4(){ bar(4); }
-void f5(){ bar(5); }
+void f4 (){ bar (4); }
+void f5 (){ bar (5); }
/* { dg-final { scan-assembler-times "iret" 2 } } */
diff --git a/gcc/testsuite/gcc.target/i386/interrupt.c b/gcc/testsuite/gcc.target/i386/interrupt.c
index 9153a521640..e4948470a75 100644
--- a/gcc/testsuite/gcc.target/i386/interrupt.c
+++ b/gcc/testsuite/gcc.target/i386/interrupt.c
@@ -6,15 +6,17 @@ extern int bar (int);
void foo ()
{
int a,b,c,d,e,f,i;
- a = bar(5);
- b = bar(a);
- c = bar(b);
- d = bar(c);
- e = bar(d);
- f = bar(e);
+ a = bar (5);
+ b = bar (a);
+ c = bar (b);
+ d = bar (c);
+ e = bar (d);
+ f = bar (e);
for (i = 1; i < 10; i++)
{
- a += bar (a + i) + bar(b + i) + bar(c + i) + bar(d + i) + bar(e + i) + bar(f+i);
+ a += bar (a + i) + bar (b + i) +
+ bar (c + i) + bar (d + i) +
+ bar (e + i) + bar (f + i);
}
}
/* { dg-final { scan-assembler "push.\t%.ax" } }*/