[LoongArch] Add codegen support for part of conversion operations
authorWeining Lu <luweining@loongson.cn>
Mon, 20 Jun 2022 01:46:37 +0000 (09:46 +0800)
committerWeining Lu <luweining@loongson.cn>
Mon, 20 Jun 2022 02:00:20 +0000 (10:00 +0800)
commitcf71f97bb11c01e6e2e3e9c7016aefc761ddf9f5
treee516c4b5d7ea9c8e67a10e5a29feb2eb67cafa9b
parent05ff3790b31638bd4759c82b534417396d7c44b1
[LoongArch] Add codegen support for part of conversion operations

These operations include `sext`, `zext` and `trunc`.

Reference:
https://llvm.org/docs/LangRef.html#conversion-operations

Differential Revision: https://reviews.llvm.org/D127204
llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
llvm/test/CodeGen/LoongArch/ir-instruction/sext-zext-trunc.ll [new file with mode: 0644]