From 725518f007663d6742f1e92ebc2d6d88418ccf61 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Mon, 24 Jun 2024 20:22:16 +0200 Subject: all: add linux/mipsle support This adds linux/mipsle (little endian Mips) support to TinyGo. It also adds experimental linux/mips (big-endian) support. It doesn't quite work yet, some parts of the standard library (like the reflect package) currently seem to assume a little-endian system. --- main_test.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'main_test.go') diff --git a/main_test.go b/main_test.go index c294b3a8a..057e008e8 100644 --- a/main_test.go +++ b/main_test.go @@ -37,6 +37,7 @@ var supportedLinuxArches = map[string]string{ "X86Linux": "linux/386", "ARMLinux": "linux/arm/6", "ARM64Linux": "linux/arm64", + "MIPSLinux": "linux/mipsle", "WASIp1": "wasip1/wasm", } @@ -211,6 +212,12 @@ func runPlatTests(options compileopts.Options, tests []string, t *testing.T) { continue } } + if options.GOOS == "linux" && (options.GOARCH == "mips" || options.GOARCH == "mipsle") { + if name == "atomic.go" { + // 64-bit atomic operations aren't currently supported on MIPS. + continue + } + } if options.Target == "simavr" { // Not all tests are currently supported on AVR. // Skip the ones that aren't. -- cgit v1.2.3