aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/gc/main.go
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2021-04-08 18:32:00 -0400
committerCherry Zhang <cherryyz@google.com>2021-04-09 00:11:25 +0000
commitd25c4fbe05e88580ce0a5cadc67e1c0ee27a2d1c (patch)
treeb77635e0ba374d6e3d7a47a4bd44bb2f1093fc66 /src/cmd/compile/internal/gc/main.go
parent19034fa855783d78cc4c40d3708bcc01a8900a1d (diff)
downloadgo-d25c4fbe05e88580ce0a5cadc67e1c0ee27a2d1c.tar.gz
go-d25c4fbe05e88580ce0a5cadc67e1c0ee27a2d1c.zip
test: do not run softfloat test with regabiargs
Softfloat mode with register ABI is not implemented yet. In particular, we did not rewrite the float types in AuxCalls to integer types, so arguments are still passed in floating point registers, which do not exist in softfloat mode. To make it work I think we may want to reorder softfloat pass with expand_calls pass. We also need to rewrite the OpArgFloatRegs for the spilling of non-SSA-able arguments, which may involve renumbering interger arguments. Maybe in softfloat mode we want to just define the ABI with 0 float registers. They are not fundamentally hard, but may be not worth doing for the moment, as we don't use softfloat mode on AMD64 anyway. Run the test with noregabiargs. Also in the compiler reject -d=softfloat if regabiargs is enabled. Change-Id: I8cc0c2cfa88a138bc1338ed8710670245f1bd2cd Reviewed-on: https://go-review.googlesource.com/c/go/+/308710 Trust: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> Reviewed-by: Than McIntosh <thanm@google.com>
Diffstat (limited to 'src/cmd/compile/internal/gc/main.go')
-rw-r--r--src/cmd/compile/internal/gc/main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/gc/main.go b/src/cmd/compile/internal/gc/main.go
index 9199db830c..68506c7a7b 100644
--- a/src/cmd/compile/internal/gc/main.go
+++ b/src/cmd/compile/internal/gc/main.go
@@ -158,6 +158,9 @@ func Main(archInit func(*ssagen.ArchInfo)) {
dwarf.EnableLogging(base.Debug.DwarfInl != 0)
}
if base.Debug.SoftFloat != 0 {
+ if objabi.Experiment.RegabiArgs {
+ log.Fatalf("softfloat mode with GOEXPERIMENT=regabiargs not implemented ")
+ }
ssagen.Arch.SoftFloat = true
}