aboutsummaryrefslogtreecommitdiff
path: root/test/codegen
diff options
context:
space:
mode:
Diffstat (limited to 'test/codegen')
-rw-r--r--test/codegen/shift.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/codegen/shift.go b/test/codegen/shift.go
index 4222b0b845..9ae113d9d7 100644
--- a/test/codegen/shift.go
+++ b/test/codegen/shift.go
@@ -123,6 +123,7 @@ func lshConst32x1Add(x int32) int32 {
// amd64:"SHLL [$]2"
// loong64:"SLL [$]2"
// riscv64:"SLLI [$]2"
+ // ppc64x:"SLW [$]2" -"ADD"
return (x + x) << 1
}
@@ -130,6 +131,7 @@ func lshConst64x1Add(x int64) int64 {
// amd64:"SHLQ [$]2"
// loong64:"SLLV [$]2"
// riscv64:"SLLI [$]2"
+ // ppc64x:"SLD [$]2" -"ADD"
return (x + x) << 1
}
@@ -137,6 +139,7 @@ func lshConst32x2Add(x int32) int32 {
// amd64:"SHLL [$]3"
// loong64:"SLL [$]3"
// riscv64:"SLLI [$]3"
+ // ppc64x:"SLW [$]3" -"ADD"
return (x + x) << 2
}
@@ -144,12 +147,14 @@ func lshConst64x2Add(x int64) int64 {
// amd64:"SHLQ [$]3"
// loong64:"SLLV [$]3"
// riscv64:"SLLI [$]3"
+ // ppc64x:"SLD [$]3" -"ADD"
return (x + x) << 2
}
func lshConst32x31Add(x int32) int32 {
// loong64:-"SLL " "MOVV R0"
// riscv64:-"SLLI" "MOV [$]0"
+ // ppc64x:"ADD" "SLW [$]31" -"SLW [$]32"
return (x + x) << 31
}