Add x86 tests for Intel CET implementation.
authorIgor Tsimbalist <igor.v.tsimbalist@intel.com>
Sat, 21 Oct 2017 21:33:41 +0000 (23:33 +0200)
committerIgor Tsimbalist <itsimbal@gcc.gnu.org>
Sat, 21 Oct 2017 21:33:41 +0000 (23:33 +0200)
commit9ae222ad79c83b3928ea8643140da6fc6bfd5e16
treec1a11945bcf1a06b8455629f2effdd06fff8e21b
parentccdf009d81a67a6719ff7b2106c483a18f13115f
Add x86 tests for Intel CET implementation.

gcc/testsuite/

* c-c++-common/attr-nocf-check-1.c: Shorten a cheking message.
* c-c++-common/attr-nocf-check-3.c: Likewise.
* c-c++-common/fcf-protection-1.c: Add x86 specific message.
* c-c++-common/fcf-protection-2.c: Likewise.
* c-c++-common/fcf-protection-3.c: Likewise.
* c-c++-common/fcf-protection-5.c: Likewise.
* c-c++-common/attr-nocf-check-1a.c: New test.
* c-c++-common/attr-nocf-check-3a.c: Likewise.
* g++.dg/cet-notrack-1.C: Likewise.
* gcc.target/i386/cet-intrin-1.c: Likewise.
* gcc.target/i386/cet-intrin-10.c: Likewise.
* gcc.target/i386/cet-intrin-2.c: Likewise.
* gcc.target/i386/cet-intrin-3.c: Likewise.
* gcc.target/i386/cet-intrin-4.c: Likewise.
* gcc.target/i386/cet-intrin-5.c: Likewise.
* gcc.target/i386/cet-intrin-6.c: Likewise.
* gcc.target/i386/cet-intrin-7.c: Likewise.
* gcc.target/i386/cet-intrin-8.c: Likewise.
* gcc.target/i386/cet-intrin-9.c: Likewise.
* gcc.target/i386/cet-label.c: Likewise.
* gcc.target/i386/cet-notrack-1a.c: Likewise.
* gcc.target/i386/cet-notrack-1b.c: Likewise.
* gcc.target/i386/cet-notrack-2a.c: Likewise.
* gcc.target/i386/cet-notrack-2b.c: Likewise.
* gcc.target/i386/cet-notrack-3.c: Likewise.
* gcc.target/i386/cet-notrack-4a.c: Likewise.
* gcc.target/i386/cet-notrack-4b.c: Likewise.
* gcc.target/i386/cet-notrack-5a.c: Likewise.
* gcc.target/i386/cet-notrack-5b.c: Likewise.
* gcc.target/i386/cet-notrack-6a.c: Likewise.
* gcc.target/i386/cet-notrack-6b.c: Likewise.
* gcc.target/i386/cet-notrack-7.c: Likewise.
* gcc.target/i386/cet-property-1.c: Likewise.
* gcc.target/i386/cet-property-2.c: Likewise.
* gcc.target/i386/cet-rdssp-1.c: Likewise.
* gcc.target/i386/cet-sjlj-1.c: Likewise.
* gcc.target/i386/cet-sjlj-2.c: Likewise.
* gcc.target/i386/cet-sjlj-3.c: Likewise.
* gcc.target/i386/cet-switch-1.c: Likewise.
* gcc.target/i386/cet-switch-2.c: Likewise.
* lib/target-supports.exp (check_effective_target_cet): New
proc.

From-SVN: r253979
44 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/attr-nocf-check-1.c
gcc/testsuite/c-c++-common/attr-nocf-check-1a.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/attr-nocf-check-3.c
gcc/testsuite/c-c++-common/attr-nocf-check-3a.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/fcf-protection-1.c
gcc/testsuite/c-c++-common/fcf-protection-2.c
gcc/testsuite/c-c++-common/fcf-protection-3.c
gcc/testsuite/c-c++-common/fcf-protection-5.c
gcc/testsuite/g++.dg/cet-notrack-1.C [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-intrin-10.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-intrin-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-intrin-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-intrin-5.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-intrin-6.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-intrin-7.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-intrin-8.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-intrin-9.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-label.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-notrack-1a.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-notrack-1b.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-notrack-2a.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-notrack-2b.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-notrack-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-notrack-4a.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-notrack-4b.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-notrack-5a.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-notrack-5b.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-notrack-6a.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-notrack-6b.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-notrack-7.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-notrack-icf-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-notrack-icf-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-notrack-icf-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-notrack-icf-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-property-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-property-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-rdssp-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-sjlj-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-sjlj-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-sjlj-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-switch-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/cet-switch-2.c [new file with mode: 0644]
gcc/testsuite/lib/target-supports.exp