]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add missing test.
authorWilco Dijkstra <wilco@gcc.gnu.org>
Tue, 24 Jan 2017 14:15:44 +0000 (14:15 +0000)
committerWilco Dijkstra <wilco@gcc.gnu.org>
Tue, 24 Jan 2017 14:15:44 +0000 (14:15 +0000)
    testsuite/
* gcc.target/arm/pr78041.c: New test.

From-SVN: r244873

gcc/testsuite/gcc.target/arm/pr78041.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.target/arm/pr78041.c b/gcc/testsuite/gcc.target/arm/pr78041.c
new file mode 100644 (file)
index 0000000..340ab5c
--- /dev/null
@@ -0,0 +1,20 @@
+/* { dg-require-effective-target arm_thumb2_ok } */
+/* { dg-require-effective-target arm_neon_ok } */
+/* { dg-options "-fno-inline -mthumb -O1 -mfpu=neon -w" } */
+
+extern void abort (void);
+
+register long long x asm ("r1");
+
+long long f (void)
+{
+  return x << 5;
+}
+
+int main ()
+{
+  x = 0x0100000001;
+  if (f () != 0x2000000020)
+    abort ();
+  return 0;
+}