public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-7197] [Committed] New test case gcc.target/avr/pr54816.c
@ 2023-04-16 12:04 Roger Sayle
  0 siblings, 0 replies; only message in thread
From: Roger Sayle @ 2023-04-16 12:04 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:f006d1a5a1e136be29c78b96c8742ebd3710f4d0

commit r13-7197-gf006d1a5a1e136be29c78b96c8742ebd3710f4d0
Author: Roger Sayle <roger@nextmovesoftware.com>
Date:   Sun Apr 16 13:03:10 2023 +0100

    [Committed] New test case gcc.target/avr/pr54816.c
    
    PR target/54816 is now fixed on mainline.  This adds a test case to
    check that it doesn't regress in future.  Tested with a cross compiler
    to avr-elf.  Committed as obvious.
    
    2023-04-16  Roger Sayle  <roger@nextmovesoftware.com>
    
    gcc/testsuite/ChangeLog
            PR target/54816
            * gcc.target/avr/pr54816.c: New test case.

Diff:
---
 gcc/testsuite/gcc.target/avr/pr54816.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gcc/testsuite/gcc.target/avr/pr54816.c b/gcc/testsuite/gcc.target/avr/pr54816.c
new file mode 100644
index 00000000000..56be78040ce
--- /dev/null
+++ b/gcc/testsuite/gcc.target/avr/pr54816.c
@@ -0,0 +1,9 @@
+/* { dg-do compile } */
+/* { dg-options "-Os -mmcu=atmega8" } */
+int wmul (char a, char b)
+{
+    return a * (char) (b << 3);
+}
+
+/* { dg-final { scan-assembler-times "lsl" 3 } } */
+/* { dg-final { scan-assembler-times "muls" 1 } } */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-16 12:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-16 12:04 [gcc r13-7197] [Committed] New test case gcc.target/avr/pr54816.c Roger Sayle

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).