ia64: Implement optimized clor, clzr, ctor and ctzr
There is a code path to use the CLZ instruction, but it is disabled.
For some reason binutils is not disassembling it, but the encoding
should be correct:
"""
4.3.1.9 Bit Strings
40 37 36 35 34 33 32 31 30 29 28 27 26 20 19 13 12 6 5 0
+-----+---+-----+--+--+-----+-----+-+------+-----+-----+---+
I9 | 7 | Za| X2a |Zb|Ve| X2c | X2b | | r3 | 0 | r1 | qp|
+-----+---+-----+--+--+-----+-----+-+------+-----+-----+---+
4 1 2 1 1 2 2 1 7 7 7 6
Extension
Instruction Operands Opcode Za Zb Ve X2a X2b X2c
popcnt r1 = r3 7 0 1 0 1 1 2
clz 3
"""
Above is the only documentation in itanium-architecture-vol-3-manual.pdf
and no mention it might not be implemented. Probably I got confused and did
not really encode it correctly. For now the fallback implementation is used.
0 files changed, 0 insertions, 0 deletions