Revision 941db528 target-cris/op.c
b/target-cris/op.c | ||
---|---|---|
18 | 18 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | 19 |
*/ |
20 | 20 |
#include "exec.h" |
21 |
#include "host-utils.h" |
|
21 | 22 |
|
22 | 23 |
#define REGNAME r0 |
23 | 24 |
#define REG (env->regs[0]) |
... | ... | |
1003 | 1004 |
|
1004 | 1005 |
void OPPROTO op_lz_T0_T1 (void) |
1005 | 1006 |
{ |
1006 |
if (T1 == 0) |
|
1007 |
T0 = 32; |
|
1008 |
else |
|
1009 |
T0 = __builtin_clz(T1); |
|
1007 |
T0 = clz32(T1); |
|
1010 | 1008 |
RETURN(); |
1011 | 1009 |
} |
1012 | 1010 |
|
Also available in: Unified diff