ssa: binop fix shl/shr size

This commit is contained in:
visualfc
2024-05-16 10:20:02 +08:00
parent 2b9fb88bf0
commit 6e4ebeddf4
3 changed files with 65 additions and 0 deletions

8
cl/_testrt/mask/in.go Normal file
View File

@@ -0,0 +1,8 @@
package main
func main() {
println(mask(1))
}
func mask(x int8) int32 {
return int32(x) << 31 >> 31
}