RISC-V: Fix bug of before_p function
authorJu-Zhe Zhong <juzhe.zhong@rivai.ai>
Wed, 18 Jan 2023 03:09:21 +0000 (11:09 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Fri, 27 Jan 2023 10:08:58 +0000 (18:08 +0800)
commit9b9a1ac14cdca6eef8dbcab0d33f3c03774a6c77
treeb95cb0973f84f3b20b9dbd124662a9c9f4bf5a10
parente577b91bbaa7075655de4da4b8af95216d8b1f6d
RISC-V: Fix bug of before_p function

compare_with will return other than -1, so it should check less than 0
rather than check exactly with -1.

gcc/ChangeLog:

* config/riscv/riscv-vsetvl.cc (before_p): Fix bug.
gcc/config/riscv/riscv-vsetvl.cc