[LoongArch] Add codegen support for icmp/fcmp with lsx/lasx fetaures (#74700)
commit9ff7d0ebeb54347f9006405a6d08ed2b713bc411
authorwanglei <wanglei@loongson.cn>
Thu, 7 Dec 2023 12:11:43 +0000 (7 20:11 +0800)
committerGitHub <noreply@github.com>
Thu, 7 Dec 2023 12:11:43 +0000 (7 20:11 +0800)
treee8719c5e1dbc1bd03b9112d8e1d0e01213e16b1d
parentb396e5429c9d5d18517a67e5c086f1013f47944f
[LoongArch] Add codegen support for icmp/fcmp with lsx/lasx fetaures (#74700)

Mark ISD::SETCC node as legal, and add handling for the vector types
condition codes.
llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
llvm/lib/Target/LoongArch/LoongArchLASXInstrInfo.td
llvm/lib/Target/LoongArch/LoongArchLSXInstrInfo.td
llvm/test/CodeGen/LoongArch/lasx/ir-instruction/fcmp.ll [new file with mode: 0644]
llvm/test/CodeGen/LoongArch/lasx/ir-instruction/icmp.ll [new file with mode: 0644]
llvm/test/CodeGen/LoongArch/lsx/ir-instruction/fcmp.ll [new file with mode: 0644]
llvm/test/CodeGen/LoongArch/lsx/ir-instruction/icmp.ll [new file with mode: 0644]