mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
Fix unit test after 324af79dbc6066
Needed to add in an extra parameter to calls to `libcall`.
This commit is contained in:
parent
d821abe3ce
commit
044ed9b7c9
@ -8,6 +8,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "GISelMITest.h"
|
||||
#include "llvm/CodeGen/GlobalISel/LostDebugLocObserver.h"
|
||||
|
||||
using namespace LegalizeActions;
|
||||
using namespace LegalizeMutations;
|
||||
@ -2017,11 +2018,12 @@ TEST_F(AArch64GISelMITest, LibcallFPExt) {
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBFPExt1));
|
||||
Helper.libcall(*MIBFPExt1, DummyLocObserver));
|
||||
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBFPExt2));
|
||||
Helper.libcall(*MIBFPExt2, DummyLocObserver));
|
||||
auto CheckStr = R"(
|
||||
CHECK: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC
|
||||
CHECK: $h0 = COPY [[TRUNC]]
|
||||
@ -2058,12 +2060,13 @@ TEST_F(AArch64GISelMITest, LibcallFPTrunc) {
|
||||
B.buildInstr(TargetOpcode::G_FPTRUNC, {S64}, {MIBMerge});
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBFPTrunc1));
|
||||
Helper.libcall(*MIBFPTrunc1, DummyLocObserver));
|
||||
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBFPTrunc2));
|
||||
Helper.libcall(*MIBFPTrunc2, DummyLocObserver));
|
||||
auto CheckStr = R"(
|
||||
CHECK: [[TRUNC:%[0-9]+]]:_(s32) = G_TRUNC
|
||||
CHECK: $s0 = COPY [[TRUNC]]
|
||||
@ -2093,10 +2096,11 @@ TEST_F(AArch64GISelMITest, LibcallSimple) {
|
||||
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
// Make sure we do not crash anymore
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::UnableToLegalize,
|
||||
Helper.libcall(*MIBFADD));
|
||||
Helper.libcall(*MIBFADD, DummyLocObserver));
|
||||
}
|
||||
|
||||
TEST_F(AArch64GISelMITest, LibcallSRem) {
|
||||
@ -2124,14 +2128,15 @@ TEST_F(AArch64GISelMITest, LibcallSRem) {
|
||||
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBSRem32));
|
||||
Helper.libcall(*MIBSRem32, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBSRem64));
|
||||
Helper.libcall(*MIBSRem64, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBSRem128));
|
||||
Helper.libcall(*MIBSRem128, DummyLocObserver));
|
||||
|
||||
auto CheckStr = R"(
|
||||
CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY
|
||||
@ -2181,14 +2186,15 @@ TEST_F(AArch64GISelMITest, LibcallURem) {
|
||||
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBURem32));
|
||||
Helper.libcall(*MIBURem32, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBURem64));
|
||||
Helper.libcall(*MIBURem64, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBURem128));
|
||||
Helper.libcall(*MIBURem128, DummyLocObserver));
|
||||
|
||||
const auto *CheckStr = R"(
|
||||
CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY
|
||||
@ -2239,14 +2245,15 @@ TEST_F(AArch64GISelMITest, LibcallCtlzZeroUndef) {
|
||||
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBCtlz32));
|
||||
Helper.libcall(*MIBCtlz32, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBCtlz64));
|
||||
Helper.libcall(*MIBCtlz64, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBCtlz128));
|
||||
Helper.libcall(*MIBCtlz128, DummyLocObserver));
|
||||
|
||||
const auto *CheckStr = R"(
|
||||
CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY
|
||||
@ -2290,14 +2297,15 @@ TEST_F(AArch64GISelMITest, LibcallFAdd) {
|
||||
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBAdd32));
|
||||
Helper.libcall(*MIBAdd32, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBAdd64));
|
||||
Helper.libcall(*MIBAdd64, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBAdd128));
|
||||
Helper.libcall(*MIBAdd128, DummyLocObserver));
|
||||
|
||||
const auto *CheckStr = R"(
|
||||
CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY
|
||||
@ -2342,14 +2350,15 @@ TEST_F(AArch64GISelMITest, LibcallFSub) {
|
||||
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBSub32));
|
||||
Helper.libcall(*MIBSub32, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBSub64));
|
||||
Helper.libcall(*MIBSub64, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBSub128));
|
||||
Helper.libcall(*MIBSub128, DummyLocObserver));
|
||||
|
||||
const auto *CheckStr = R"(
|
||||
CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY
|
||||
@ -2395,13 +2404,14 @@ TEST_F(AArch64GISelMITest, LibcallFMul) {
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBMul32));
|
||||
Helper.libcall(*MIBMul32, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBMul64));
|
||||
Helper.libcall(*MIBMul64, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBMul128));
|
||||
Helper.libcall(*MIBMul128, DummyLocObserver));
|
||||
|
||||
const auto *CheckStr = R"(
|
||||
CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY
|
||||
@ -2446,14 +2456,15 @@ TEST_F(AArch64GISelMITest, LibcallFDiv) {
|
||||
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBDiv32));
|
||||
Helper.libcall(*MIBDiv32, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBDiv64));
|
||||
Helper.libcall(*MIBDiv64, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBDiv128));
|
||||
Helper.libcall(*MIBDiv128, DummyLocObserver));
|
||||
|
||||
const auto *CheckStr = R"(
|
||||
CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY
|
||||
@ -2496,14 +2507,15 @@ TEST_F(AArch64GISelMITest, LibcallFExp) {
|
||||
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBExp32));
|
||||
Helper.libcall(*MIBExp32, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBExp64));
|
||||
Helper.libcall(*MIBExp64, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBExp128));
|
||||
Helper.libcall(*MIBExp128, DummyLocObserver));
|
||||
|
||||
const auto *CheckStr = R"(
|
||||
CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY
|
||||
@ -2543,14 +2555,15 @@ TEST_F(AArch64GISelMITest, LibcallFExp2) {
|
||||
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBExp232));
|
||||
Helper.libcall(*MIBExp232, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBExp264));
|
||||
Helper.libcall(*MIBExp264, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBExp2128));
|
||||
Helper.libcall(*MIBExp2128, DummyLocObserver));
|
||||
|
||||
const auto *CheckStr = R"(
|
||||
CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY
|
||||
@ -2590,14 +2603,15 @@ TEST_F(AArch64GISelMITest, LibcallFRem) {
|
||||
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBFRem32));
|
||||
Helper.libcall(*MIBFRem32, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBFRem64));
|
||||
Helper.libcall(*MIBFRem64, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBFRem128));
|
||||
Helper.libcall(*MIBFRem128, DummyLocObserver));
|
||||
|
||||
const auto *CheckStr = R"(
|
||||
CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY
|
||||
@ -2637,14 +2651,15 @@ TEST_F(AArch64GISelMITest, LibcallFPow) {
|
||||
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBPow32));
|
||||
Helper.libcall(*MIBPow32, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBPow64));
|
||||
Helper.libcall(*MIBPow64, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBPow128));
|
||||
Helper.libcall(*MIBPow128, DummyLocObserver));
|
||||
|
||||
const auto *CheckStr = R"(
|
||||
CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY
|
||||
@ -2685,14 +2700,15 @@ TEST_F(AArch64GISelMITest, LibcallFMa) {
|
||||
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBMa32));
|
||||
Helper.libcall(*MIBMa32, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBMa64));
|
||||
Helper.libcall(*MIBMa64, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBMa128));
|
||||
Helper.libcall(*MIBMa128, DummyLocObserver));
|
||||
|
||||
const auto *CheckStr = R"(
|
||||
CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY
|
||||
@ -2733,13 +2749,14 @@ TEST_F(AArch64GISelMITest, LibcallFCeil) {
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBCeil32));
|
||||
Helper.libcall(*MIBCeil32, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBCeil64));
|
||||
Helper.libcall(*MIBCeil64, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBCeil128));
|
||||
Helper.libcall(*MIBCeil128, DummyLocObserver));
|
||||
|
||||
const auto *CheckStr = R"(
|
||||
CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY
|
||||
@ -2780,13 +2797,14 @@ TEST_F(AArch64GISelMITest, LibcallFFloor) {
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBFloor32));
|
||||
Helper.libcall(*MIBFloor32, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBFloor64));
|
||||
Helper.libcall(*MIBFloor64, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBFloor128));
|
||||
Helper.libcall(*MIBFloor128, DummyLocObserver));
|
||||
|
||||
const auto *CheckStr = R"(
|
||||
CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY
|
||||
@ -2827,13 +2845,14 @@ TEST_F(AArch64GISelMITest, LibcallFMinNum) {
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBMin32));
|
||||
Helper.libcall(*MIBMin32, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBMin64));
|
||||
Helper.libcall(*MIBMin64, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBMin128));
|
||||
Helper.libcall(*MIBMin128, DummyLocObserver));
|
||||
|
||||
const auto *CheckStr = R"(
|
||||
CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY
|
||||
@ -2877,13 +2896,14 @@ TEST_F(AArch64GISelMITest, LibcallFMaxNum) {
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBMax32));
|
||||
Helper.libcall(*MIBMax32, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBMax64));
|
||||
Helper.libcall(*MIBMax64, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBMax128));
|
||||
Helper.libcall(*MIBMax128, DummyLocObserver));
|
||||
|
||||
const auto *CheckStr = R"(
|
||||
CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY
|
||||
@ -2927,13 +2947,14 @@ TEST_F(AArch64GISelMITest, LibcallFSqrt) {
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBSqrt32));
|
||||
Helper.libcall(*MIBSqrt32, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBSqrt64));
|
||||
Helper.libcall(*MIBSqrt64, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBSqrt128));
|
||||
Helper.libcall(*MIBSqrt128, DummyLocObserver));
|
||||
|
||||
const auto *CheckStr = R"(
|
||||
CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY
|
||||
@ -2974,13 +2995,14 @@ TEST_F(AArch64GISelMITest, LibcallFRint) {
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBRint32));
|
||||
Helper.libcall(*MIBRint32, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBRint64));
|
||||
Helper.libcall(*MIBRint64, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBRint128));
|
||||
Helper.libcall(*MIBRint128, DummyLocObserver));
|
||||
|
||||
const auto *CheckStr = R"(
|
||||
CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY
|
||||
@ -3024,13 +3046,14 @@ TEST_F(AArch64GISelMITest, LibcallFNearbyInt) {
|
||||
AInfo Info(MF->getSubtarget());
|
||||
DummyGISelObserver Observer;
|
||||
LegalizerHelper Helper(*MF, Info, Observer, B);
|
||||
LostDebugLocObserver DummyLocObserver("");
|
||||
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBNearbyInt32));
|
||||
Helper.libcall(*MIBNearbyInt32, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBNearbyInt64));
|
||||
Helper.libcall(*MIBNearbyInt64, DummyLocObserver));
|
||||
EXPECT_EQ(LegalizerHelper::LegalizeResult::Legalized,
|
||||
Helper.libcall(*MIBNearbyInt128));
|
||||
Helper.libcall(*MIBNearbyInt128, DummyLocObserver));
|
||||
|
||||
const auto *CheckStr = R"(
|
||||
CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY
|
||||
|
Loading…
Reference in New Issue
Block a user