Skip to content

Commit eda5274

Browse files
committed
fix rule
1 parent 888203a commit eda5274

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/cmd/compile/internal/ssa/_gen/RISCV64.rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@
861861
(Max64u x y) && buildcfg.GORISCV64 >= 22 => (MAXU x y)
862862

863863
// Zicond Extension for Integer Conditional Operations
864-
(CondSelect <t> x y cond) =>
864+
(CondSelect <t> x y cond) && buildcfg.GORISCV64 >= 23 =>
865865
(OR (CZEROEQZ <t> x (MOVBUreg <typ.UInt64> cond)) (CZERONEZ <t> y (MOVBUreg <typ.UInt64> cond)))
866866
(CZERO(EQ|NE)Z x (SNEZ y)) => (CZERO(EQ|NE)Z x y)
867867
(CZERO(EQ|NE)Z x (SEQZ y)) => (CZERO(NE|EQ)Z x y)

src/cmd/compile/internal/ssa/rewriteRISCV64.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)