aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmd/internal/obj/riscv/testdata/testbranch/branch_test.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/cmd/internal/obj/riscv/testdata/testbranch/branch_test.go b/src/cmd/internal/obj/riscv/testdata/testbranch/branch_test.go
index b0ab5f72aa..803ba8c77c 100644
--- a/src/cmd/internal/obj/riscv/testdata/testbranch/branch_test.go
+++ b/src/cmd/internal/obj/riscv/testdata/testbranch/branch_test.go
@@ -22,11 +22,11 @@ func testBLTZ(a int64) (r bool)
func testBNEZ(a int64) (r bool)
func TestBranchCondition(t *testing.T) {
- tests := []struct{
- ins string
- a int64
- b int64
- fn func(a, b int64) bool
+ tests := []struct {
+ ins string
+ a int64
+ b int64
+ fn func(a, b int64) bool
want bool
}{
{"BGT", 0, 1, testBGT, true},
@@ -59,10 +59,10 @@ func TestBranchCondition(t *testing.T) {
}
func TestBranchZero(t *testing.T) {
- tests := []struct{
- ins string
- a int64
- fn func(a int64) bool
+ tests := []struct {
+ ins string
+ a int64
+ fn func(a int64) bool
want bool
}{
{"BEQZ", -1, testBEQZ, false},