aboutsummaryrefslogtreecommitdiff
path: root/test/codegen
diff options
context:
space:
mode:
Diffstat (limited to 'test/codegen')
-rw-r--r--test/codegen/arithmetic.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/codegen/arithmetic.go b/test/codegen/arithmetic.go
index eecb101395..1294cfffd9 100644
--- a/test/codegen/arithmetic.go
+++ b/test/codegen/arithmetic.go
@@ -30,14 +30,14 @@ func Pow2Muls(n1, n2 int) (int, int) {
// ------------------ //
func MergeMuls1(n int) int {
- // amd64:"IMULQ\t[$]46"
- // 386:"IMULL\t[$]46"
+ // amd64:"IMUL3Q\t[$]46"
+ // 386:"IMUL3L\t[$]46"
return 15*n + 31*n // 46n
}
func MergeMuls2(n int) int {
- // amd64:"IMULQ\t[$]23","ADDQ\t[$]29"
- // 386:"IMULL\t[$]23","ADDL\t[$]29"
+ // amd64:"IMUL3Q\t[$]23","ADDQ\t[$]29"
+ // 386:"IMUL3L\t[$]23","ADDL\t[$]29"
return 5*n + 7*(n+1) + 11*(n+2) // 23n + 29
}
@@ -48,8 +48,8 @@ func MergeMuls3(a, n int) int {
}
func MergeMuls4(n int) int {
- // amd64:"IMULQ\t[$]14"
- // 386:"IMULL\t[$]14"
+ // amd64:"IMUL3Q\t[$]14"
+ // 386:"IMUL3L\t[$]14"
return 23*n - 9*n // 14n
}