summaryrefslogtreecommitdiff
path: root/test/codegen/arithmetic.go
diff options
context:
space:
mode:
authorMichael Munday <mike.munday@lowrisc.org>2021-09-08 13:57:07 +0000
committerMichael Munday <mike.munday@lowrisc.org>2021-09-08 14:51:22 +0000
commitfdc2072420d28b761e30dd02e7ed6118cda33f4f (patch)
tree03a81b24e783865c4d9441e5d2dfe58907b5aaa0 /test/codegen/arithmetic.go
parent64bdad2011c7450d5f7dd90f992acb057a25a5c2 (diff)
downloadgo-git-fdc2072420d28b761e30dd02e7ed6118cda33f4f.tar.gz
test/codegen: remove broken riscv64 test
This test is not executed by default (see #48247) and does not actually pass. It was added in CL 346689. The code generation changes made in that CL only change how instructions are assembled, they do not actually affect the output of the compiler. This test is unfortunately therefore invalid and will never pass. Updates #48247. Change-Id: I0c807e4a111336e5a097fe4e3af2805f9932a87f Reviewed-on: https://go-review.googlesource.com/c/go/+/348390 Trust: Michael Munday <mike.munday@lowrisc.org> Run-TryBot: Michael Munday <mike.munday@lowrisc.org> Reviewed-by: Cherry Mui <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'test/codegen/arithmetic.go')
-rw-r--r--test/codegen/arithmetic.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/test/codegen/arithmetic.go b/test/codegen/arithmetic.go
index 754c5c9bc9..eb95416b6a 100644
--- a/test/codegen/arithmetic.go
+++ b/test/codegen/arithmetic.go
@@ -575,11 +575,3 @@ func constantFold3(i, j int) int {
r := (5 * i) * (6 * j)
return r
}
-
-func addConst(i int64) (int64, int64) {
- // riscv64:`ADDI`,-`LUI`
- a := i + 3001
- // riscv64:`LUI`,`ADDIW`
- b := i + 5009
- return a, b
-}