From fb00ba697821de4fb3d8d0dd44edfa5f4727d067 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Mon, 9 May 2022 12:57:57 -0700 Subject: expr: Use integer type for member access intermediate address calculation --- test/bitfield-load-signed.qbe | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'test/bitfield-load-signed.qbe') diff --git a/test/bitfield-load-signed.qbe b/test/bitfield-load-signed.qbe index 12b474f..386395c 100644 --- a/test/bitfield-load-signed.qbe +++ b/test/bitfield-load-signed.qbe @@ -2,11 +2,10 @@ export function $f() { @start.1 @body.2 - %.1 =l mul 0, 1 - %.2 =l add $s, %.1 - %.3 =w loadw %.2 - %.4 =w shl %.3, 13 - %.5 =w sar %.4, 17 + %.1 =l add $s, 0 + %.2 =w loadw %.1 + %.3 =w shl %.2, 13 + %.4 =w sar %.3, 17 ret } export data $s = align 4 { z 4 } -- cgit v1.2.3