Check in gcc/testsuite/gcc.target/powerpc/ssp-[12].c (I forgot "svn add"
authorSegher Boessenkool <segher@gcc.gnu.org>
Wed, 18 Jan 2017 01:05:50 +0000 (02:05 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Wed, 18 Jan 2017 01:05:50 +0000 (02:05 +0100)
once again).

From-SVN: r244562

gcc/testsuite/gcc.target/powerpc/ssp-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/ssp-2.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.target/powerpc/ssp-1.c b/gcc/testsuite/gcc.target/powerpc/ssp-1.c
new file mode 100644 (file)
index 0000000..018f690
--- /dev/null
@@ -0,0 +1,6 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -fstack-protector-all -mstack-protector-guard=global" } */
+
+/* { dg-final { scan-assembler "__stack_chk_guard" } } */
+
+void f(void) { }
diff --git a/gcc/testsuite/gcc.target/powerpc/ssp-2.c b/gcc/testsuite/gcc.target/powerpc/ssp-2.c
new file mode 100644 (file)
index 0000000..6fa91f6
--- /dev/null
@@ -0,0 +1,6 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -fstack-protector-all -mstack-protector-guard=tls -mstack-protector-guard-reg=r18 -mstack-protector-guard-offset=0x3038" } */
+
+/* { dg-final { scan-assembler {\m12344\(r?18\)} } } */
+
+void f(void) { }