~sircmpwn/hare unlisted

23f3b8d6eed89486e0a43eabaee511823873de32 — Eyal Sawady a month ago d0ddab2
gen: fix casts of negative numbers to i64
1 files changed, 6 insertions(+), 6 deletions(-)

M src/gen.c
M src/gen.c => src/gen.c +6 -6
@@ 1764,8 1764,8 @@ ha_build_ir_expr_cast(struct ha_qbe_context *context,
		case HA_TYPE_STORAGE_I8:
			conv.class = HA_QBE_INSTR_CLASS_CONVERT;
			conv.convert.instr = sign
				? HA_QBE_CONVERT_INSTR_EXTUB
				: HA_QBE_CONVERT_INSTR_EXTSB;
				? HA_QBE_CONVERT_INSTR_EXTSB
				: HA_QBE_CONVERT_INSTR_EXTUB;
			conv.convert.out.storage = HA_QBE_TYPE_LONG;
			conv.convert.out.name = out;
			in = &conv.convert.arg;


@@ 1774,8 1774,8 @@ ha_build_ir_expr_cast(struct ha_qbe_context *context,
		case HA_TYPE_STORAGE_I16:
			conv.class = HA_QBE_INSTR_CLASS_CONVERT;
			conv.convert.instr = sign
				? HA_QBE_CONVERT_INSTR_EXTUH
				: HA_QBE_CONVERT_INSTR_EXTSH;
				? HA_QBE_CONVERT_INSTR_EXTSH
				: HA_QBE_CONVERT_INSTR_EXTUH;
			conv.convert.out.storage = HA_QBE_TYPE_LONG;
			conv.convert.out.name = out;
			in = &conv.convert.arg;


@@ 1787,8 1787,8 @@ ha_build_ir_expr_cast(struct ha_qbe_context *context,
		case HA_TYPE_STORAGE_BOOL:
			conv.class = HA_QBE_INSTR_CLASS_CONVERT;
			conv.convert.instr = sign
				? HA_QBE_CONVERT_INSTR_EXTUW
				: HA_QBE_CONVERT_INSTR_EXTSW;
				? HA_QBE_CONVERT_INSTR_EXTSW
				: HA_QBE_CONVERT_INSTR_EXTUW;
			conv.convert.out.storage = HA_QBE_TYPE_LONG;
			conv.convert.out.name = out;
			in = &conv.convert.arg;