aboutsummaryrefslogtreecommitdiffhomepage
path: root/main_test.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2024-06-24 20:22:16 +0200
committerRon Evans <[email protected]>2024-07-22 16:21:26 +0200
commit725518f007663d6742f1e92ebc2d6d88418ccf61 (patch)
tree01489f64270419ddb28520cd040b24babddab475 /main_test.go
parent04d1261f8a48b18a4404c52f858c35c0668316cd (diff)
downloadtinygo-725518f007663d6742f1e92ebc2d6d88418ccf61.tar.gz
tinygo-725518f007663d6742f1e92ebc2d6d88418ccf61.zip
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.
Diffstat (limited to 'main_test.go')
-rw-r--r--main_test.go7
1 files changed, 7 insertions, 0 deletions
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.