gotypes: saving progress (temporarily broken tests)

This commit is contained in:
Michael McLoughlin
2018-12-07 18:37:42 -08:00
parent c86ef5ecae
commit bbbf6399a1
4 changed files with 187 additions and 4 deletions

View File

@@ -41,6 +41,7 @@ func TestMemAsm(t *testing.T) {
{Mem{Symbol: Symbol{Name: "foo"}, Base: reg.StaticBase, Disp: 4}, "foo+4(SB)"},
{Mem{Symbol: Symbol{Name: "foo"}, Base: reg.StaticBase, Disp: -7}, "foo-7(SB)"},
{Mem{Symbol: Symbol{Name: "bar", Static: true}, Base: reg.StaticBase, Disp: 4, Index: reg.R11, Scale: 4}, "bar<>+4(SB)(R11*4)"},
{NewParamAddr("param", 16), "param+16(FP)"},
}
for _, c := range cases {
got := c.Mem.Asm()