diff options
Diffstat (limited to 'test/bitfield-integer-promotion.qbe')
-rw-r--r-- | test/bitfield-integer-promotion.qbe | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/test/bitfield-integer-promotion.qbe b/test/bitfield-integer-promotion.qbe index e479e2f..993ca8d 100644 --- a/test/bitfield-integer-promotion.qbe +++ b/test/bitfield-integer-promotion.qbe @@ -3,15 +3,12 @@ function w $main() { @start.1 @body.2 %.1 =w sub 0, 1 - %.2 =l copy $s - %.3 =l mul 0, 1 - %.4 =l add %.2, %.3 - %.5 =l copy %.4 - %.6 =w loadw %.5 - %.7 =w shl %.6, 30 - %.8 =w shr %.7, 30 - %.9 =w copy %.8 - %.10 =w csgtw %.1, %.9 - ret %.10 + %.2 =l mul 0, 1 + %.3 =l add $s, %.2 + %.4 =w loadw %.3 + %.5 =w shl %.4, 30 + %.6 =w shr %.5, 30 + %.7 =w csgtw %.1, %.6 + ret %.7 } export data $s = align 4 { z 4 } |