aboutsummaryrefslogtreecommitdiff
path: root/test/codegen
diff options
context:
space:
mode:
Diffstat (limited to 'test/codegen')
-rw-r--r--test/codegen/shift.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/codegen/shift.go b/test/codegen/shift.go
index 7385058726..4b0885a4dd 100644
--- a/test/codegen/shift.go
+++ b/test/codegen/shift.go
@@ -148,11 +148,13 @@ func lshConst64x2Add(x int64) int64 {
}
func lshConst32x31Add(x int32) int32 {
+ // loong64:-"SLL\t","MOVV\tR0"
// riscv64:-"SLLI","MOV\t[$]0"
return (x + x) << 31
}
func lshConst64x63Add(x int64) int64 {
+ // loong64:-"SLLV","MOVV\tR0"
// riscv64:-"SLLI","MOV\t[$]0"
return (x + x) << 63
}