aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-tree.cc
diff options
context:
space:
mode:
authorHaochen Gui <guihaoc@gcc.gnu.org>2022-12-08 13:22:29 +0800
committerHaochen Gui <guihaoc@gcc.gnu.org>2022-12-13 16:32:15 +0800
commit99cce60d0b8f3c3a77be8e1bb716f3e2fee37d46 (patch)
tree1de5acddb0b9189cacd33c59c74f18b0b62106f0 /gcc/rust/backend/rust-tree.cc
parent1728c537b4f697e2a4b4eba0b0c70165f2a02840 (diff)
downloadgcc-99cce60d0b8f3c3a77be8e1bb716f3e2fee37d46.zip
gcc-99cce60d0b8f3c3a77be8e1bb716f3e2fee37d46.tar.gz
gcc-99cce60d0b8f3c3a77be8e1bb716f3e2fee37d46.tar.bz2
optabs: make prepare_cmp_insn goto fail when cbranchcc4 checks unsatisfied
prepare_cmp_insn is a help function to generate comparison rtx. It should not assume that cbranchcc4 exists and all sub-CC modes are supported on a target. When the check fails, it could go to fail and return a NULL rtx as its callers check the return value for CCmode. The test case (gcc.target/powerpc/cbranchcc4-1.c) which covers failure path will be committed with an rs6000 specific patch. 2022-12-05 Haochen Gui <guihaoc@linux.ibm.com> gcc/ * optabs.cc (prepare_cmp_insn): Return a NULL rtx other than assertion failure when targets don't have cbranch optab or predicate check fails.
Diffstat (limited to 'gcc/rust/backend/rust-tree.cc')
0 files changed, 0 insertions, 0 deletions