diff options
author | Michael Forney <mforney@mforney.org> | 2022-05-09 12:57:57 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2022-05-09 13:05:22 -0700 |
commit | fb00ba697821de4fb3d8d0dd44edfa5f4727d067 (patch) | |
tree | 33ac4c8a3b8fc64cd7386b03c9d01857f98fd638 /test/bitfield-load-signed.qbe | |
parent | 70fe9ef1810cc6c05bde9eb0970363c35fa7e802 (diff) |
expr: Use integer type for member access intermediate address calculation
Diffstat (limited to 'test/bitfield-load-signed.qbe')
-rw-r--r-- | test/bitfield-load-signed.qbe | 9 |
1 files changed, 4 insertions, 5 deletions
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 } |