diff options
author | Richard Henderson <rth@twiddle.net> | 2014-03-26 10:59:14 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2014-04-18 16:57:37 -0700 |
commit | df9ebea53ebc1c98217743f56c30ae3a46031bb9 (patch) | |
tree | c0ca7191f6e26e1975e36ac180699742f3ae31d2 /tcg/tcg.h | |
parent | 671c835b7dc12bfb3907c6af38f74073fe8fade9 (diff) | |
download | qemu-df9ebea53ebc1c98217743f56c30ae3a46031bb9.zip qemu-df9ebea53ebc1c98217743f56c30ae3a46031bb9.tar.gz qemu-df9ebea53ebc1c98217743f56c30ae3a46031bb9.tar.bz2 |
tcg: Relax requirement for mulu2_i32 on 32-bit hosts
Instead require either mulu2_i32 or muluh_i32. The code in tcg-op.h
already supports looking for both. Previous incomplete conversion?
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg/tcg.h')
-rw-r--r-- | tcg/tcg.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -97,7 +97,6 @@ typedef uint64_t TCGRegSet; /* Turn some undef macros into true macros. */ #define TCG_TARGET_HAS_add2_i32 1 #define TCG_TARGET_HAS_sub2_i32 1 -#define TCG_TARGET_HAS_mulu2_i32 1 #endif #ifndef TCG_TARGET_deposit_i32_valid @@ -121,6 +120,13 @@ typedef uint64_t TCGRegSet; #define TCG_TARGET_HAS_rem_i64 0 #endif +/* For 32-bit targets, some sort of unsigned widening multiply is required. */ +#if TCG_TARGET_REG_BITS == 32 \ + && !(defined(TCG_TARGET_HAS_mulu2_i32) \ + || defined(TCG_TARGET_HAS_muluh_i32)) +# error "Missing unsigned widening multiply" +#endif + typedef enum TCGOpcode { #define DEF(name, oargs, iargs, cargs, flags) INDEX_op_ ## name, #include "tcg-opc.h" |