make clean should clean generated asm as well

This commit is contained in:
Kovid Goyal 2024-02-01 20:33:14 +05:30
parent 9fc3db1dd1
commit 68d800d4fa
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
4 changed files with 19 additions and 12 deletions

View file

@ -1,3 +0,0 @@
tags
simdstring.test
asm_*

View file

@ -1379,11 +1379,11 @@ func do_one(s *State) {
s.Generate()
if s.ISA.HasSIMD {
write_file(fmt.Sprintf("asm_%d_%s.s", s.ISA.Bits, s.ISA.Goarch), s.ASMOutput.String())
write_file(fmt.Sprintf("asm_%d_%s_test.s", s.ISA.Bits, s.ISA.Goarch), s.TestASMOutput.String())
write_file(fmt.Sprintf("asm_%d_%s_generated.s", s.ISA.Bits, s.ISA.Goarch), s.ASMOutput.String())
write_file(fmt.Sprintf("asm_%d_%s_generated_test.s", s.ISA.Bits, s.ISA.Goarch), s.TestASMOutput.String())
}
write_file(fmt.Sprintf("asm_%d_%s.go", s.ISA.Bits, s.ISA.Goarch), s.StubOutput.String())
write_file(fmt.Sprintf("asm_%d_%s_test.go", s.ISA.Bits, s.ISA.Goarch), s.TestStubOutput.String())
write_file(fmt.Sprintf("asm_%d_%s_generated.go", s.ISA.Bits, s.ISA.Goarch), s.StubOutput.String())
write_file(fmt.Sprintf("asm_%d_%s_generated_test.go", s.ISA.Bits, s.ISA.Goarch), s.TestStubOutput.String())
}
func create_isa(arch Arch, bits int) ISA {
@ -1430,8 +1430,8 @@ func main() {
s.ISA.HasSIMD = false
fmt.Fprintf(&s.StubOutput, "const HasSIMD%dCode = false\n", bits)
s.Generate()
write_file(fmt.Sprintf("asm_other_%d.go", bits), s.StubOutput.String())
write_file(fmt.Sprintf("asm_other_%d_test.go", bits), s.TestStubOutput.String())
write_file(fmt.Sprintf("asm_other_%d_generated.go", bits), s.StubOutput.String())
write_file(fmt.Sprintf("asm_other_%d_generated_test.go", bits), s.TestStubOutput.String())
}
}