Skip to content

Commit

Permalink
[CSKY][test][NFC] Add more tests of multiplication with immediates
Browse files Browse the repository at this point in the history
Reviewed By: zixuan-wu

Differential Revision: https://reviews.llvm.org/D153105
  • Loading branch information
benshi001 committed Jun 20, 2023
1 parent 99610fa commit 56e33d9
Show file tree
Hide file tree
Showing 3 changed files with 406 additions and 7 deletions.
8 changes: 4 additions & 4 deletions llvm/lib/Target/CSKY/CSKY.td
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ def HasFdivdu : Predicate<"Subtarget->hasFdivdu()">,

def FeatureFPUV3_HI
: SubtargetFeature<"fpuv3_hi", "HasFPUv3HalfWord", "true",
"Enable FPUv3 harf word converting instructions">;
"Enable FPUv3 half word converting instructions">;
def HasFPUv3_HI : Predicate<"Subtarget->hasFPUv3HalfWord()">,
AssemblerPredicate<(all_of FeatureFPUV3_HI),
"Enable FPUv3 harf word converting instructions">;
"Enable FPUv3 half word converting instructions">;

def FeatureFPUV3_HF
: SubtargetFeature<"fpuv3_hf", "HasFPUv3HalfFloat", "true",
"Enable FPUv3 harf precision operate instructions">;
"Enable FPUv3 half precision operate instructions">;
def HasFPUv3_HF : Predicate<"Subtarget->hasFPUv3HalfFloat()">,
AssemblerPredicate<(all_of FeatureFPUV3_HF),
"Enable FPUv3 harf precision operate instructions">;
"Enable FPUv3 half precision operate instructions">;

def FeatureFPUV3_SF
: SubtargetFeature<"fpuv3_sf", "HasFPUv3SingleFloat", "true",
Expand Down
6 changes: 3 additions & 3 deletions llvm/lib/Target/CSKY/CSKYISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ CSKYTargetLowering::CSKYTargetLowering(const TargetMachine &TM,
ISD::SETUGE, ISD::SETULT, ISD::SETULE,
};

ISD::NodeType FPOpToExpand[] = {ISD::FSIN, ISD::FCOS, ISD::FSINCOS,
ISD::FPOW, ISD::FREM, ISD::FCOPYSIGN,
ISD::FP16_TO_FP, ISD::FP_TO_FP16};
ISD::NodeType FPOpToExpand[] = {
ISD::FSIN, ISD::FCOS, ISD::FSINCOS, ISD::FPOW,
ISD::FREM, ISD::FCOPYSIGN, ISD::FP16_TO_FP, ISD::FP_TO_FP16};

if (STI.useHardFloat()) {

Expand Down

0 comments on commit 56e33d9

Please sign in to comment.