diff options
Diffstat (limited to 'test/codegen')
| -rw-r--r-- | test/codegen/arithmetic.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/codegen/arithmetic.go b/test/codegen/arithmetic.go index 3948ef301d..f358020f55 100644 --- a/test/codegen/arithmetic.go +++ b/test/codegen/arithmetic.go @@ -14,7 +14,11 @@ package codegen // Subtraction // // ----------------- // -func SubMem(arr []int) int { +func SubMem(arr []int, b int) int { + // 386:`SUBL\s[A-Z]+,\s8\([A-Z]+\)` + arr[2] -= b + // 386:`SUBL\s[A-Z]+,\s12\([A-Z]+\)` + arr[3] -= b // 386:"SUBL\t4" // amd64:"SUBQ\t8" return arr[0] - arr[1] |
