Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tcg/ppc: Remove unused constraint J
Never used since its introduction.

Fixes: 3d582c6 ("tcg-ppc64: Rearrange integer constant constraints")
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed May 11, 2023
1 parent 9adb9fd commit ba26d08
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion tcg/ppc/tcg-target-con-str.h
Expand Up @@ -16,7 +16,6 @@ REGS('v', ALL_VECTOR_REGS)
* CONST(letter, TCG_CT_CONST_* bit set)
*/
CONST('I', TCG_CT_CONST_S16)
CONST('J', TCG_CT_CONST_U16)
CONST('M', TCG_CT_CONST_MONE)
CONST('T', TCG_CT_CONST_S32)
CONST('U', TCG_CT_CONST_U32)
Expand Down
3 changes: 0 additions & 3 deletions tcg/ppc/tcg-target.c.inc
Expand Up @@ -83,7 +83,6 @@
#define SZR (TCG_TARGET_REG_BITS / 8)

#define TCG_CT_CONST_S16 0x100
#define TCG_CT_CONST_U16 0x200
#define TCG_CT_CONST_S32 0x400
#define TCG_CT_CONST_U32 0x800
#define TCG_CT_CONST_ZERO 0x1000
Expand Down Expand Up @@ -270,8 +269,6 @@ static bool tcg_target_const_match(int64_t val, TCGType type, int ct)

if ((ct & TCG_CT_CONST_S16) && val == (int16_t)val) {
return 1;
} else if ((ct & TCG_CT_CONST_U16) && val == (uint16_t)val) {
return 1;
} else if ((ct & TCG_CT_CONST_S32) && val == (int32_t)val) {
return 1;
} else if ((ct & TCG_CT_CONST_U32) && val == (uint32_t)val) {
Expand Down

0 comments on commit ba26d08

Please sign in to comment.