public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] ARM: add test case for -masm-syntax-unified (PR88648)
@ 2019-01-02 21:48 Stefan Agner
  2019-01-08  9:35 ` Kyrill Tkachov
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Agner @ 2019-01-02 21:48 UTC (permalink / raw)
  To: nickc, richard.earnshaw, ramana.radhakrishnan, kyrylo.tkachov
  Cc: gcc-patches, Stefan Agner

Add a test case to check whether -masm-syntax-unified is indeed
emitting the inline assembler with .syntax unified.
---
 .../gcc.target/arm/pr88648-asm-syntax-unified.c    | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 gcc/testsuite/gcc.target/arm/pr88648-asm-syntax-unified.c

diff --git a/gcc/testsuite/gcc.target/arm/pr88648-asm-syntax-unified.c b/gcc/testsuite/gcc.target/arm/pr88648-asm-syntax-unified.c
new file mode 100644
index 00000000000..2bd9d891b9e
--- /dev/null
+++ b/gcc/testsuite/gcc.target/arm/pr88648-asm-syntax-unified.c
@@ -0,0 +1,14 @@
+/* Test for unified syntax assembly generation.  */
+/* { dg-do compile } */
+/* { dg-require-effective-target arm_arch_v7a_ok } */
+/* { dg-add-options arm_arch_v7a } */
+/* { dg-options "-marm -march=armv7-a -masm-syntax-unified" } */
+
+void test ()
+{
+  asm("nop");
+}
+
+/* { dg-final { scan-assembler-times {\.syntax\sunified} 3 } } */
+/* { dg-final { scan-assembler-times {\.syntax\sdivided} 0 } } */
+
-- 
2.20.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-01-08 21:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-02 21:48 [PATCH] ARM: add test case for -masm-syntax-unified (PR88648) Stefan Agner
2019-01-08  9:35 ` Kyrill Tkachov
2019-01-08 21:56   ` Stefan Agner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).