diff options
Diffstat (limited to 'test/codegen/memops.go')
-rw-r--r-- | test/codegen/memops.go | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/test/codegen/memops.go b/test/codegen/memops.go index 0df191480d..e393e5684f 100644 --- a/test/codegen/memops.go +++ b/test/codegen/memops.go @@ -204,42 +204,3 @@ func idxFloat64(x, y []float64, i int) { // 386/sse2: `MOVSD\tX[0-9]+, 8\([A-Z]+[0-9]*\)\([A-Z]+[0-9]*\*[18]\)` y[16*i+1] = t } - -func idxLoadPlusOp(x []int32, i int) int32 { - s := x[0] - // 386: `ADDL\t4\([A-Z]+\)\([A-Z]+\*4\), [A-Z]+` - s += x[i+1] - // 386: `SUBL\t8\([A-Z]+\)\([A-Z]+\*4\), [A-Z]+` - s -= x[i+2] - // 386: `IMULL\t12\([A-Z]+\)\([A-Z]+\*4\), [A-Z]+` - s *= x[i+3] - // 386: `ANDL\t16\([A-Z]+\)\([A-Z]+\*4\), [A-Z]+` - s &= x[i+4] - // 386: `ORL\t20\([A-Z]+\)\([A-Z]+\*4\), [A-Z]+` - s |= x[i+5] - // 386: `XORL\t24\([A-Z]+\)\([A-Z]+\*4\), [A-Z]+` - s ^= x[i+6] - return s -} - -func idxStorePlusOp(x []int32, i int, v int32) { - // 386: `ADDL\t[A-Z]+, 4\([A-Z]+\)\([A-Z]+\*4\)` - x[i+1] += v - // 386: `SUBL\t[A-Z]+, 8\([A-Z]+\)\([A-Z]+\*4\)` - x[i+2] -= v - // 386: `ANDL\t[A-Z]+, 12\([A-Z]+\)\([A-Z]+\*4\)` - x[i+3] &= v - // 386: `ORL\t[A-Z]+, 16\([A-Z]+\)\([A-Z]+\*4\)` - x[i+4] |= v - // 386: `XORL\t[A-Z]+, 20\([A-Z]+\)\([A-Z]+\*4\)` - x[i+5] ^= v - - // 386: `ADDL\t[$]77, 24\([A-Z]+\)\([A-Z]+\*4\)` - x[i+6] += 77 - // 386: `ANDL\t[$]77, 28\([A-Z]+\)\([A-Z]+\*4\)` - x[i+7] &= 77 - // 386: `ORL\t[$]77, 32\([A-Z]+\)\([A-Z]+\*4\)` - x[i+8] |= 77 - // 386: `XORL\t[$]77, 36\([A-Z]+\)\([A-Z]+\*4\)` - x[i+9] ^= 77 -} |