diff options
Diffstat (limited to 'test/codegen/arithmetic.go')
| -rw-r--r-- | test/codegen/arithmetic.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/codegen/arithmetic.go b/test/codegen/arithmetic.go index ce7a7c27f4..3948ef301d 100644 --- a/test/codegen/arithmetic.go +++ b/test/codegen/arithmetic.go @@ -173,3 +173,8 @@ func CapMod(a []int) int { // amd64:"ANDQ\t[$]4095" return cap(a) % ((1 << 11) + 2048) } + +func AddMul(x int) int { + // amd64:"LEAQ\t1" + return 2*x + 1 +} |
