aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/csky/land1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/csky/land1.c')
-rw-r--r--gcc/testsuite/gcc.target/csky/land1.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/csky/land1.c b/gcc/testsuite/gcc.target/csky/land1.c
new file mode 100644
index 00000000000..e5ca51cad11
--- /dev/null
+++ b/gcc/testsuite/gcc.target/csky/land1.c
@@ -0,0 +1,11 @@
+/* { dg-do compile } */
+/* { dg-csky-options "-O1" } */
+
+/* Test special code generation patterns for bit operators. */
+
+long long int land1 (long long int x)
+{
+ return x & 0xffffffff00000000LL;
+}
+
+/* { dg-final { scan-assembler "movi.*, 0" } } */