]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Fix wrong predicator for zero_extendsidi2_internal pattern
authorKito Cheng <kito.cheng@sifive.com>
Wed, 27 Oct 2021 16:27:39 +0000 (00:27 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Thu, 28 Oct 2021 06:53:50 +0000 (14:53 +0800)
We're wrongly guard zero_extendsidi2_internal pattern both ZBA and ZBB,
only ZBA provide zero_extendsidi2 instruction.

gcc/ChangeLog

* config/riscv/riscv.md (zero_extendsidi2_internal): Allow ZBB
use this pattern.

gcc/config/riscv/riscv.md

index dd4c24292f20d527e01466b92e5a8c99bd1700be..225e5b259c1011fb441722327b2f77592ebd5674 100644 (file)
   [(set (match_operand:DI     0 "register_operand"     "=r,r")
        (zero_extend:DI
            (match_operand:SI 1 "nonimmediate_operand" " r,m")))]
-  "TARGET_64BIT && !(TARGET_ZBA || TARGET_ZBB)"
+  "TARGET_64BIT && !TARGET_ZBA"
   "@
    #
    lwu\t%0,%1"