diff options
author | Lynn Boger <laboger@linux.vnet.ibm.com> | 2018-10-15 12:53:07 -0400 |
---|---|---|
committer | Lynn Boger <laboger@linux.vnet.ibm.com> | 2018-10-16 19:00:53 +0000 |
commit | 39fa301bdc5cd99e4f71d7da5f6f38a6f313d611 (patch) | |
tree | 889359c9b75a51188cd7f24b673a3ce2152de592 /test/codegen/stack.go | |
parent | 4b36e129f865f802eb87f7aa2b25e3297c5d8cfd (diff) | |
download | go-git-39fa301bdc5cd99e4f71d7da5f6f38a6f313d611.tar.gz |
test/codegen: enable more tests for ppc64/ppc64le
Adding cases for ppc64,ppc64le to the codegen tests
where appropriate.
Change-Id: Idf8cbe88a4ab4406a4ef1ea777bd15a58b68f3ed
Reviewed-on: https://go-review.googlesource.com/c/142557
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'test/codegen/stack.go')
-rw-r--r-- | test/codegen/stack.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/codegen/stack.go b/test/codegen/stack.go index 0f2f6178c7..ed2c1ed959 100644 --- a/test/codegen/stack.go +++ b/test/codegen/stack.go @@ -18,6 +18,7 @@ import "runtime" // arm:"TEXT\t.*, [$]-4-" // arm64:"TEXT\t.*, [$]0-" // mips:"TEXT\t.*, [$]-4-" +// ppc64:"TEXT\t.*, [$]0-" // ppc64le:"TEXT\t.*, [$]0-" // s390x:"TEXT\t.*, [$]0-" func StackStore() int { @@ -37,6 +38,7 @@ type T struct { // arm:"TEXT\t.*, [$]0-" (spills return address) // arm64:"TEXT\t.*, [$]0-" // mips:"TEXT\t.*, [$]-4-" +// ppc64:"TEXT\t.*, [$]0-" // ppc64le:"TEXT\t.*, [$]0-" // s390x:"TEXT\t.*, [$]0-" func ZeroLargeStruct(x *T) { @@ -51,6 +53,7 @@ func ZeroLargeStruct(x *T) { // amd64:"TEXT\t.*, [$]0-" // arm:"TEXT\t.*, [$]0-" (spills return address) // arm64:"TEXT\t.*, [$]0-" +// ppc64:"TEXT\t.*, [$]0-" // ppc64le:"TEXT\t.*, [$]0-" // s390x:"TEXT\t.*, [$]0-" // Note: that 386 currently has to spill a register. @@ -65,6 +68,7 @@ func KeepWanted(t *T) { // - arm & mips fail due to softfloat calls // amd64:"TEXT\t.*, [$]0-" // arm64:"TEXT\t.*, [$]0-" +// ppc64:"TEXT\t.*, [$]0-" // ppc64le:"TEXT\t.*, [$]0-" // s390x:"TEXT\t.*, [$]0-" func ArrayAdd64(a, b [4]float64) [4]float64 { @@ -78,6 +82,7 @@ func ArrayAdd64(a, b [4]float64) [4]float64 { // arm:"TEXT\t.*, [$]0-" (spills return address) // arm64:"TEXT\t.*, [$]0-" // mips:"TEXT\t.*, [$]-4-" +// ppc64:"TEXT\t.*, [$]0-" // ppc64le:"TEXT\t.*, [$]0-" // s390x:"TEXT\t.*, [$]0-" func ArrayInit(i, j int) [4]int { |