[Patch, AVR, longlong.h]: Implement __clrsbhi2.

Georg-Johann Lay avr@gjlay.de
Thu Jun 30 13:21:00 GMT 2011


The new count leading signs is not implemented for HI:

builtin-bitops-1.c:(.text+0xd1e): undefined reference to `__clrsbhi2'
FAIL: gcc.c-torture/execute/builtin-bitops-1.c compilation,  -O0

Extended clz/ctz support in longlong.h

With the patch testcase passes.

Johann

libgcc/
	* config/avr/t-avr (intfuncs16): Add _clrsbXX2.

gcc/
	* longlong.h (count_leading_zeros, count_trailing_zeros,
	COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
	resp. 64.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clrsb.diff
Type: text/x-patch
Size: 1697 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110630/d1444a6e/attachment.bin>


More information about the Gcc-patches mailing list