llgo/ssa: TestMakeInterface (32bits); ssa/ssatest

This commit is contained in:
xushiwei
2024-05-20 10:23:24 +08:00
parent 6335ac6a47
commit cc357b2b7d
6 changed files with 124 additions and 16 deletions

View File

@@ -182,7 +182,7 @@ func NewProgram(target *Target) Program {
// TODO(xsw): Finalize may cause panic, so comment it.
ctx.Finalize()
*/
is32Bits := (td.PointerSize() == 4)
is32Bits := (td.PointerSize() == 4 || target.GOARCH == "x86") // TODO(xsw): remove temp code
return &aProgram{
ctx: ctx, gocvt: newGoTypes(), // abi: abi.New(),
target: target, td: td, is32Bits: is32Bits,