aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmd/compile/internal/gc/asm_test.go90
1 files changed, 0 insertions, 90 deletions
diff --git a/src/cmd/compile/internal/gc/asm_test.go b/src/cmd/compile/internal/gc/asm_test.go
index b1a5531449..f8111204b6 100644
--- a/src/cmd/compile/internal/gc/asm_test.go
+++ b/src/cmd/compile/internal/gc/asm_test.go
@@ -431,54 +431,6 @@ var linuxARM64Tests = []*asmTest{
// Check that zero stores are combine into larger stores
{
fn: `
- func $(b []byte) {
- _ = b[1] // early bounds check to guarantee safety of writes below
- b[0] = 0
- b[1] = 0
- }
- `,
- pos: []string{"MOVH\tZR"},
- neg: []string{"MOVB"},
- },
- {
- fn: `
- func $(b []byte) {
- _ = b[1] // early bounds check to guarantee safety of writes below
- b[1] = 0
- b[0] = 0
- }
- `,
- pos: []string{"MOVH\tZR"},
- neg: []string{"MOVB"},
- },
- {
- fn: `
- func $(b []byte) {
- _ = b[3] // early bounds check to guarantee safety of writes below
- b[0] = 0
- b[1] = 0
- b[2] = 0
- b[3] = 0
- }
- `,
- pos: []string{"MOVW\tZR"},
- neg: []string{"MOVB", "MOVH"},
- },
- {
- fn: `
- func $(b []byte) {
- _ = b[3] // early bounds check to guarantee safety of writes below
- b[2] = 0
- b[3] = 0
- b[1] = 0
- b[0] = 0
- }
- `,
- pos: []string{"MOVW\tZR"},
- neg: []string{"MOVB", "MOVH"},
- },
- {
- fn: `
func $(h []uint16) {
_ = h[1] // early bounds check to guarantee safety of writes below
h[0] = 0
@@ -501,23 +453,6 @@ var linuxARM64Tests = []*asmTest{
},
{
fn: `
- func $(b []byte) {
- _ = b[7] // early bounds check to guarantee safety of writes below
- b[0] = 0
- b[1] = 0
- b[2] = 0
- b[3] = 0
- b[4] = 0
- b[5] = 0
- b[6] = 0
- b[7] = 0
- }
- `,
- pos: []string{"MOVD\tZR"},
- neg: []string{"MOVB", "MOVH", "MOVW"},
- },
- {
- fn: `
func $(h []uint16) {
_ = h[3] // early bounds check to guarantee safety of writes below
h[0] = 0
@@ -566,31 +501,6 @@ var linuxARM64Tests = []*asmTest{
},
{
fn: `
- func $(b []byte) {
- _ = b[15] // early bounds check to guarantee safety of writes below
- b[0] = 0
- b[1] = 0
- b[2] = 0
- b[3] = 0
- b[4] = 0
- b[5] = 0
- b[6] = 0
- b[7] = 0
- b[8] = 0
- b[9] = 0
- b[10] = 0
- b[11] = 0
- b[12] = 0
- b[13] = 0
- b[15] = 0
- b[14] = 0
- }
- `,
- pos: []string{"STP"},
- neg: []string{"MOVB", "MOVH", "MOVW"},
- },
- {
- fn: `
func $(h []uint16) {
_ = h[7] // early bounds check to guarantee safety of writes below
h[0] = 0