aboutsummaryrefslogtreecommitdiff
path: root/test/codegen
diff options
context:
space:
mode:
Diffstat (limited to 'test/codegen')
-rw-r--r--test/codegen/bitfield.go2
-rw-r--r--test/codegen/multiply.go2
-rw-r--r--test/codegen/shift.go6
3 files changed, 5 insertions, 5 deletions
diff --git a/test/codegen/bitfield.go b/test/codegen/bitfield.go
index 6374d70650..51221266e1 100644
--- a/test/codegen/bitfield.go
+++ b/test/codegen/bitfield.go
@@ -373,6 +373,6 @@ func shift(x uint32, y uint16, z uint8) uint64 {
// loong64:-`MOVBU`,-`SRLV\t[$]8`
c := uint64(z) >> 8
// arm64:`MOVD\tZR`,-`ADD\tR[0-9]+>>16`,-`ADD\tR[0-9]+>>8`,
- // loong64:`MOVV\t[$]0`,-`ADDVU`
+ // loong64:`MOVV\tR0`,-`ADDVU`
return a + b + c
}
diff --git a/test/codegen/multiply.go b/test/codegen/multiply.go
index dc2910dab7..8c408cbfba 100644
--- a/test/codegen/multiply.go
+++ b/test/codegen/multiply.go
@@ -12,7 +12,7 @@ package codegen
func m0(x int64) int64 {
// amd64: "XORL"
// arm64: "MOVD\tZR"
- // loong64: "MOVV\t[$]0"
+ // loong64: "MOVV\tR0"
return x * 0
}
func m2(x int64) int64 {
diff --git a/test/codegen/shift.go b/test/codegen/shift.go
index 3ab0fcfabc..1c71b0f3ef 100644
--- a/test/codegen/shift.go
+++ b/test/codegen/shift.go
@@ -25,19 +25,19 @@ func rshConst64Ux64(v uint64) uint64 {
}
func rshConst64Ux64Overflow32(v uint32) uint64 {
- // loong64:"MOVV\t\\$0,",-"SRL\t"
+ // loong64:"MOVV\tR0,",-"SRL\t"
// riscv64:"MOV\t\\$0,",-"SRL"
return uint64(v) >> 32
}
func rshConst64Ux64Overflow16(v uint16) uint64 {
- // loong64:"MOVV\t\\$0,",-"SRLV"
+ // loong64:"MOVV\tR0,",-"SRLV"
// riscv64:"MOV\t\\$0,",-"SRL"
return uint64(v) >> 16
}
func rshConst64Ux64Overflow8(v uint8) uint64 {
- // loong64:"MOVV\t\\$0,",-"SRLV"
+ // loong64:"MOVV\tR0,",-"SRLV"
// riscv64:"MOV\t\\$0,",-"SRL"
return uint64(v) >> 8
}