cmd/compile: fix parameter offset calculation
cmd/compile: fix parameter offset calculation

For struct like { { a int64; b int16 }; c int32 }, on 64-bit
machines the offset of c is 16, as the inner struct takes 16
bytes because we round up type size to its alignment. Update the
abi package's offset calculation to include this.

We only need to do this for struct type, because for all other
types its size is naturally aligned.

TODO: add a test.

Change-Id: I0c661768cb1ed3cb409b20a88b7e23e059f8e3e1
Reviewed-on: https://go-review.googlesource.com/c/go/+/306449
Trust: Cherry Zhang <d62e63aa42ce272d7b6a5055d97e942b33a34679@google.com>
Run-TryBot: Cherry Zhang <d62e63aa42ce272d7b6a5055d97e942b33a34679@google.com>
TryBot-Result: Go Bot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Than McIntosh <4b2922593166fc595a9b1a408f34f5d3817fe9d2@google.com>
Reviewed-by: David Chase <ae171625adc8645b8b79b7e405a6da5aba5341e0@google.com>

cloudflare/go,CAFxX/go,golang/go,golang/go,golang/go,CAFxX/go,golang/go,cloudflare/go,nawawi/go,cloudflare/go,nawawi/go,golang/go,nawawi/go,golang/go,golang/go,nawawi/go,cloudflare/go,nawawi/go,CAFxX/go,CAFxX/go,cloudflare/go,CAFxX/go,nawawi/go,CAFxX/go,cloudflare/go,CAFxX/go,CAFxX/go,golang/go,cloudflare/go,nawawi/go,cloudflare/go,nawawi/go