Don't shift signed positive integers into the sign bit
authorZack Weinberg <zack@gcc.gnu.org>
Fri, 26 Feb 1999 06:00:48 +0000 (06:00 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Fri, 26 Feb 1999 06:00:48 +0000 (06:00 +0000)
From-SVN: r25455

gcc/testsuite/gcc.dg/cpp-if3.c

index 2d5b67603ddb4036b06a291ec2fae4981373a431..6dfe39d393270ac4ebdafbef632050430d6d6f38 100644 (file)
@@ -13,7 +13,7 @@
 
 /* Check left/right shifting with all bits set and with one bit set. */
 #if !(~0ULL >> 63) || !(~0ULL << 63) || !(~0LL >> 63) || !(~0LL << 63) || \
-  !(LL_MIN >> 63) || !(1LL << 63) || !(ULL_MAX >> 63) || !(1ULL << 63)
+  !(LL_MIN >> 63) || !(1LL << 62) || !(ULL_MAX >> 63) || !(1ULL << 63)
 #error "bit shift truncation" /* { dg-bogus "trunc" "bit shift truncation" } */
 #endif