Skip to content

Commit 00604c6

Browse files
committed
fix test case
1 parent 0ea745c commit 00604c6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

test/codegen/condmove.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -668,12 +668,10 @@ func CondAndNonZero(cond, a, b int) int {
668668
return a
669669
}
670670

671-
// Immediate variants tests
672671
func cmoveAddiZero(cond, a int) int {
673672
if cond == 0 {
674673
a += 42
675674
}
676-
// riscv64/rva20u64, riscv64/rva22u64:-`CZEROEQZ`, -`CZERONEZ`
677675
// riscv64/rva23u64:`CZERONEZ`, `ADD`, -`SEQZ`, -`CZEROEQZ`, -`OR`
678676
return a
679677
}
@@ -682,7 +680,6 @@ func cmoveAddiNonZero(cond, a int) int {
682680
if cond != 0 {
683681
a += 42
684682
}
685-
// riscv64/rva20u64, riscv64/rva22u64:-`CZEROEQZ`, -`CZERONEZ`
686683
// riscv64/rva23u64:`CZEROEQZ`, `ADD`, -`SNEZ`, -`CZERONEZ`, -`OR`
687684
return a
688685
}
@@ -691,7 +688,6 @@ func cmoveOriZero(cond, a int) int {
691688
if cond == 0 {
692689
a |= 0xFF
693690
}
694-
// riscv64/rva20u64, riscv64/rva22u64:-`CZEROEQZ`, -`CZERONEZ`
695691
// riscv64/rva23u64:`CZERONEZ`, -`SEQZ`, -`CZEROEQZ`
696692
return a
697693
}
@@ -741,7 +737,6 @@ func cmoveAddiwZero(cond int32, a int32) int32 {
741737
if cond == 0 {
742738
a += 42
743739
}
744-
// riscv64/rva20u64, riscv64/rva22u64:-`CZEROEQZ`, -`CZERONEZ`
745740
// riscv64/rva23u64:`CZERONEZ`, `ADD`, -`SEQZ`, -`CZEROEQZ`, -`OR`
746741
return a
747742
}
@@ -750,7 +745,6 @@ func cmoveAddiwNonZero(cond int32, a int32) int32 {
750745
if cond != 0 {
751746
a += 42
752747
}
753-
// riscv64/rva20u64, riscv64/rva22u64:-`CZEROEQZ`, -`CZERONEZ`
754748
// riscv64/rva23u64:`CZEROEQZ`, `ADD`, -`SNEZ`, -`CZERONEZ`, -`OR`
755749
return a
756750
}
@@ -759,7 +753,6 @@ func cmoveAddwZero(cond int32, a, b int32) int32 {
759753
if cond == 0 {
760754
a += b
761755
}
762-
// riscv64/rva20u64, riscv64/rva22u64:-`CZEROEQZ`, -`CZERONEZ`
763756
// riscv64/rva23u64:`CZERONEZ`, `ADD`, -`SEQZ`, -`CZEROEQZ`, -`OR`
764757
return a
765758
}
@@ -768,7 +761,6 @@ func cmoveAddwNonZero(cond int32, a, b int32) int32 {
768761
if cond != 0 {
769762
a += b
770763
}
771-
// riscv64/rva20u64, riscv64/rva22u64:-`CZEROEQZ`, -`CZERONEZ`
772764
// riscv64/rva23u64:`CZEROEQZ`, `ADD`, -`SNEZ`, -`CZERONEZ`, -`OR`
773765
return a
774766
}
@@ -777,7 +769,6 @@ func cmoveSubwZero(cond int32, a, b int32) int32 {
777769
if cond == 0 {
778770
a -= b
779771
}
780-
// riscv64/rva20u64, riscv64/rva22u64:-`CZEROEQZ`, -`CZERONEZ`
781772
// riscv64/rva23u64:`CZERONEZ`, `SUB`, -`SEQZ`, -`CZEROEQZ`, -`OR`
782773
return a
783774
}
@@ -786,7 +777,6 @@ func cmoveSubwNonZero(cond int32, a, b int32) int32 {
786777
if cond != 0 {
787778
a -= b
788779
}
789-
// riscv64/rva20u64, riscv64/rva22u64:-`CZEROEQZ`, -`CZERONEZ`
790780
// riscv64/rva23u64:`CZEROEQZ`, `SUB`, -`SNEZ`, -`CZERONEZ`, -`OR`
791781
return a
792782
}

0 commit comments

Comments
 (0)