r236919 - in /trunk: gcc/java/ChangeLog gcc/jav...
sayle@gcc.gnu.org
sayle@gcc.gnu.org
Tue May 31 11:30:00 GMT 2016
Author: sayle
Date: Tue May 31 11:30:56 2016
New Revision: 236919
URL: https://gcc.gnu.org/viewcvs?rev=236919&root=gcc&view=rev
Log:
2016-05-31 Roger Sayle <roger@nextmovesoftware.com>
gcc/java:
* builtins.c (java_builtins): Use popcount* and bswap* builtins to
implement bitCount() and reverseBytes() methods in java.lang.Integer
and friends.
(initialize_builtins): Annotate math builtins with ECF_LEAF. Call
define_builtin for the new popcount* and bswap* builtins.
libjava:
* testsuite/libjava.lang/BuiltinBitCount.java: New test case.
* testsuite/libjava.lang/BuiltinReverseBytes.java: Likewise.
Added:
trunk/libjava/testsuite/libjava.lang/BuiltinBitCount.jar (with props)
trunk/libjava/testsuite/libjava.lang/BuiltinBitCount.java
trunk/libjava/testsuite/libjava.lang/BuiltinBitCount.out
trunk/libjava/testsuite/libjava.lang/BuiltinReverseBytes.jar (with props)
trunk/libjava/testsuite/libjava.lang/BuiltinReverseBytes.java
trunk/libjava/testsuite/libjava.lang/BuiltinReverseBytes.out
Modified:
trunk/gcc/java/ChangeLog
trunk/gcc/java/builtins.c
trunk/libjava/ChangeLog
Propchange: trunk/libjava/testsuite/libjava.lang/BuiltinBitCount.jar
('svn:mime-type' added)
Propchange: trunk/libjava/testsuite/libjava.lang/BuiltinReverseBytes.jar
('svn:mime-type' added)
More information about the Gcc-cvs
mailing list