diff options
author | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2012-01-10 10:17:21 +0100 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2012-01-12 13:54:16 +0100 |
commit | 48b5e96f0f7006f46a7d6c6f0934a6acdda22e3b (patch) | |
tree | 87714ec1e00a6c0e51c83f767ad5ead5656d43a4 /target-microblaze/op_helper.c | |
parent | 2355c16e74ffa4d14e7fc2b4a23b055565ac0221 (diff) |
microblaze: Add support for the clz insn
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'target-microblaze/op_helper.c')
-rw-r--r-- | target-microblaze/op_helper.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target-microblaze/op_helper.c b/target-microblaze/op_helper.c index 7433cec291..d99c564375 100644 --- a/target-microblaze/op_helper.c +++ b/target-microblaze/op_helper.c @@ -165,6 +165,11 @@ uint32_t helper_cmpu(uint32_t a, uint32_t b) return t; } +uint32_t helper_clz(uint32_t t0) +{ + return clz32(t0); +} + uint32_t helper_carry(uint32_t a, uint32_t b, uint32_t cf) { uint32_t ncf; |