[PowerPC] Add support for G_ADD and G_SUB.
authorKai Nacke <kai.peter.nacke@ibm.com>
Mon, 21 Nov 2022 20:47:52 +0000 (20:47 +0000)
committerKai Nacke <kai.peter.nacke@ibm.com>
Mon, 21 Nov 2022 23:35:17 +0000 (23:35 +0000)
commit2b1e895afb5b79b076db07d51b6118183356e68d
tree90e0bf1425c33f6e496f2a4faee9efb92962f68d
parent3465f0225906d42baf0c5e674ad583d0cac32640
[PowerPC] Add support for G_ADD and G_SUB.

Extends the global isel implementation to support G_ADD and G_SUB.

Reviewed By: arsenm, amyk

Differential Revision: https://reviews.llvm.org/D128106
llvm/lib/Target/PowerPC/GISel/PPCLegalizerInfo.cpp
llvm/lib/Target/PowerPC/GISel/PPCRegisterBankInfo.cpp
llvm/test/CodeGen/PowerPC/GlobalISel/ppc-isel-arithmentic.ll [new file with mode: 0644]