]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[RISC-V][PR target/118241] Fix data prefetch predicate/constraint for RISC-V
authorJeff Law <jlaw@ventanamicro.com>
Tue, 24 Jun 2025 00:27:49 +0000 (18:27 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Tue, 24 Jun 2025 00:29:24 +0000 (18:29 -0600)
Fix typo in comment spotted by Peter B.

PR target/118241
gcc/
* config/riscv/predicates.md: Fix comment typo in recent change.

gcc/config/riscv/predicates.md

index 8072d67fbd97ad9a88ba3c148cc5c76be1845848..061904b6e000d84570c41ef2667cda6102d77037 100644 (file)
@@ -27,7 +27,7 @@
   (ior (match_operand 0 "const_arith_operand")
        (match_operand 0 "register_operand")))
 
-;; REG or REG+D where D fits in a simm12 and has the low 4 bits
+;; REG or REG+D where D fits in a simm12 and has the low 5 bits
 ;; off.  The REG+D form can be reloaded into a temporary if needed
 ;; after FP elimination if that exposes an invalid offset.
 (define_predicate "prefetch_operand"