]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
AVR: lra/116321 - Add test case.
authorGeorg-Johann Lay <avr@gjlay.de>
Fri, 6 Sep 2024 11:47:12 +0000 (13:47 +0200)
committerGeorg-Johann Lay <avr@gjlay.de>
Fri, 6 Sep 2024 11:49:40 +0000 (13:49 +0200)
PR rtl-optimization/116321
gcc/testsuite/
* gcc.target/avr/torture/lra-pr116321.c: New test.

gcc/testsuite/gcc.target/avr/torture/lra-pr116321.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.target/avr/torture/lra-pr116321.c b/gcc/testsuite/gcc.target/avr/torture/lra-pr116321.c
new file mode 100644 (file)
index 0000000..559db8d
--- /dev/null
@@ -0,0 +1,20 @@
+/* { dg-additional-options -std=gnu99 } */
+
+#include <avr/pgmspace.h>
+
+typedef __UINT64_TYPE__ T;
+
+#ifdef __FLASH
+T fun64_flash (const __flash T *p)
+{
+  return *p;
+}
+#endif
+
+#ifdef __MEMX
+T fun64_memx (const __memx T *p)
+{
+  return *p;
+}
+#endif
+