diff options
Diffstat (limited to 'test/bitfield-assignment-sign-extend.qbe')
-rw-r--r-- | test/bitfield-assignment-sign-extend.qbe | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/test/bitfield-assignment-sign-extend.qbe b/test/bitfield-assignment-sign-extend.qbe index ceaa1f9..3589d2f 100644 --- a/test/bitfield-assignment-sign-extend.qbe +++ b/test/bitfield-assignment-sign-extend.qbe @@ -2,18 +2,17 @@ export function w $main() { @start.1 @body.2 - %.1 =l mul 0, 1 - %.2 =l add $s, %.1 - %.3 =w shl 15, 0 - %.4 =w shl %.3, 28 - %.5 =w sar %.4, 28 - %.6 =w and %.3, 15 - %.7 =w loadw %.2 - %.8 =w and %.7, 18446744073709551600 - %.9 =w or %.6, %.8 - storew %.9, %.2 - %.10 =w neg 1 - %.11 =w cnew %.5, %.10 - ret %.11 + %.1 =l add $s, 0 + %.2 =w shl 15, 0 + %.3 =w shl %.2, 28 + %.4 =w sar %.3, 28 + %.5 =w and %.2, 15 + %.6 =w loadw %.1 + %.7 =w and %.6, 18446744073709551600 + %.8 =w or %.5, %.7 + storew %.8, %.1 + %.9 =w neg 1 + %.10 =w cnew %.4, %.9 + ret %.10 } export data $s = align 4 { z 4 } |