summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target
diff options
context:
space:
mode:
authoribolton <ibolton@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-06 15:51:49 +0000
committeribolton <ibolton@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-06 15:51:49 +0000
commitad9d43990d777817dfdd1efc98db8df6fc33b82a (patch)
tree57fd954c2713a9109972e5899b217c4d795a3e32 /gcc/testsuite/gcc.target
parent84ade58db7a58c310e42e55633c9d8d52fc5c994 (diff)
downloadgcc-ad9d43990d777817dfdd1efc98db8df6fc33b82a.tar.gz
[ARM] Add __builtin_trap support for A32
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205749 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.target')
-rw-r--r--gcc/testsuite/gcc.target/arm/builtin-trap.c10
-rw-r--r--gcc/testsuite/gcc.target/arm/thumb-builtin-trap.c11
2 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/arm/builtin-trap.c b/gcc/testsuite/gcc.target/arm/builtin-trap.c
new file mode 100644
index 00000000000..4ff8d253e75
--- /dev/null
+++ b/gcc/testsuite/gcc.target/arm/builtin-trap.c
@@ -0,0 +1,10 @@
+/* { dg-do compile } */
+/* { dg-require-effective-target arm32 } */
+
+void
+trap ()
+{
+ __builtin_trap ();
+}
+
+/* { dg-final { scan-assembler "0xe7f000f0" { target { arm_nothumb } } } } */
diff --git a/gcc/testsuite/gcc.target/arm/thumb-builtin-trap.c b/gcc/testsuite/gcc.target/arm/thumb-builtin-trap.c
new file mode 100644
index 00000000000..22e90e7d2cf
--- /dev/null
+++ b/gcc/testsuite/gcc.target/arm/thumb-builtin-trap.c
@@ -0,0 +1,11 @@
+/* { dg-do compile } */
+/* { dg-options "-mthumb" } */
+/* { dg-require-effective-target arm_thumb1_ok } */
+
+void
+trap ()
+{
+ __builtin_trap ();
+}
+
+/* { dg-final { scan-assembler "0xdeff" } } */