diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr81780-1.c | 14 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr81780-2.c | 14 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr81780-3.c | 14 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr81780-4.c | 14 |
4 files changed, 56 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr81780-1.c b/gcc/testsuite/gcc.target/i386/pr81780-1.c new file mode 100644 index 00000000000..f5a28020782 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr81780-1.c @@ -0,0 +1,14 @@ +/* { dg-do compile { target { *-*-linux* && ia32 } } } */ +/* { dg-require-effective-target got32x_reloc } */ +/* { dg-options "-fcf-protection -mcet -O2 -fno-pic -fplt" } */ + +extern void bar (int) __attribute__ ((regparm (3))); + +int +foo (int i) +{ + bar (i); + return 0; +} + +/* { dg-final { scan-assembler "call\[ \t\]*.bar@GOT" } } */ diff --git a/gcc/testsuite/gcc.target/i386/pr81780-2.c b/gcc/testsuite/gcc.target/i386/pr81780-2.c new file mode 100644 index 00000000000..59f4c5f4d70 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr81780-2.c @@ -0,0 +1,14 @@ +/* { dg-do compile { target { *-*-linux* && ia32 } } } */ +/* { dg-require-effective-target got32x_reloc } */ +/* { dg-options "-fcf-protection -mcet -O2 -fno-pic -fplt -mregparm=3" } */ + +extern void bar (int); + +int +foo (int i) +{ + bar (i); + return 0; +} + +/* { dg-final { scan-assembler "call\[ \t\]*.bar@GOT" } } */ diff --git a/gcc/testsuite/gcc.target/i386/pr81780-3.c b/gcc/testsuite/gcc.target/i386/pr81780-3.c new file mode 100644 index 00000000000..3bc0c197fbe --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr81780-3.c @@ -0,0 +1,14 @@ +/* { dg-do compile { target { *-*-linux* && ia32 } } } */ +/* { dg-require-effective-target got32x_reloc } */ +/* { dg-options "-fcf-protection -mcet -O2 -fplt -fpic" } */ + +extern void bar (int) __attribute__ ((regparm (3))); + +int +foo (int i) +{ + bar (i); + return 0; +} + +/* { dg-final { scan-assembler "call\[ \t\]*.bar@GOT" } } */ diff --git a/gcc/testsuite/gcc.target/i386/pr81780-4.c b/gcc/testsuite/gcc.target/i386/pr81780-4.c new file mode 100644 index 00000000000..875dff1765c --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr81780-4.c @@ -0,0 +1,14 @@ +/* { dg-do compile { target { *-*-linux* && ia32 } } } */ +/* { dg-require-effective-target got32x_reloc } */ +/* { dg-options "-fcf-protection -mcet -O2 -fpic -fplt -mregparm=3" } */ + +extern void bar (int); + +int +foo (int i) +{ + bar (i); + return 0; +} + +/* { dg-final { scan-assembler "call\[ \t\]*.bar@GOT" } } */ |