diff options
author | Andrew Haley <aph@redhat.com> | 2016-09-30 16:24:48 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2016-09-30 16:24:48 +0000 |
commit | 07b78716af6a9d7c9fd1e94d9baf94a52c873947 (patch) | |
tree | 3f22b3241c513ad168c8353805614ae1249410f4 /libjava/testsuite/libjava.lang/BuiltinBitCount.java | |
parent | eae993948bae8b788c53772bcb9217c063716f93 (diff) | |
download | gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.zip gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.tar.gz gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.tar.bz2 |
Makefile.def: Remove libjava.
2016-09-30 Andrew Haley <aph@redhat.com>
* Makefile.def: Remove libjava.
* Makefile.tpl: Likewise.
* Makefile.in: Regenerate.
* configure.ac: Likewise.
* configure: Likewise.
* gcc/java: Remove.
* libjava: Likewise.
From-SVN: r240662
Diffstat (limited to 'libjava/testsuite/libjava.lang/BuiltinBitCount.java')
-rw-r--r-- | libjava/testsuite/libjava.lang/BuiltinBitCount.java | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/libjava/testsuite/libjava.lang/BuiltinBitCount.java b/libjava/testsuite/libjava.lang/BuiltinBitCount.java deleted file mode 100644 index bcafd31..0000000 --- a/libjava/testsuite/libjava.lang/BuiltinBitCount.java +++ /dev/null @@ -1,51 +0,0 @@ -class BuiltinBitCount -{ - public static int popcount(int x) - { - return Integer.bitCount(x); - } - - public static int popcountl(long x) - { - return Long.bitCount(x); - } - - public static void main(String[] args) - { - if (Integer.bitCount(0) != 0) - throw new Error(); - if (Integer.bitCount(8) != 1) - throw new Error(); - if (Integer.bitCount(123456) != 6) - throw new Error(); - if (Integer.bitCount(-1) != 32) - throw new Error(); - - if (Long.bitCount(0) != 0) - throw new Error(); - if (Long.bitCount(8) != 1) - throw new Error(); - if (Long.bitCount(123456) != 6) - throw new Error(); - if (Long.bitCount(-1) != 64) - throw new Error(); - - if (popcount(0) != 0) - throw new Error(); - if (popcount(8) != 1) - throw new Error(); - if (popcount(123456) != 6) - throw new Error(); - if (popcount(-1) != 32) - throw new Error(); - - if (popcountl(0) != 0) - throw new Error(); - if (popcountl(8) != 1) - throw new Error(); - if (popcountl(123456) != 6) - throw new Error(); - if (popcountl(-1) != 64) - throw new Error(); - } -} |