@@ -35,13 +35,15 @@ TEST(ConstantFoldLogf128Fixture, ConstantFoldLogf128) {
35
35
FunctionType *FP128FP128Prototype =
36
36
FunctionType::get (FP128Ty, {FP128Ty}, false );
37
37
Constant *Constant2L = ConstantFP::get128 (FP128Ty, 2 .0L );
38
- Function *Logf128 = Function::Create (
39
- FP128FP128Prototype, Function::ExternalLinkage, " llvm.log.f128" , MainModule);
38
+ Function *Logf128 =
39
+ Function::Create (FP128FP128Prototype, Function::ExternalLinkage,
40
+ " llvm.log.f128" , MainModule);
40
41
CallInst *Logf128Call = Builder.CreateCall (Logf128, Constant2L);
41
42
42
43
TargetLibraryInfoImpl TLII (Triple (MainModule.getTargetTriple ()));
43
44
TargetLibraryInfo TLI (TLII, Logf128TestFunction);
44
- Constant *FoldResult = ConstantFoldCall (Logf128Call, Logf128, Constant2L, &TLI);
45
+ Constant *FoldResult =
46
+ ConstantFoldCall (Logf128Call, Logf128, Constant2L, &TLI);
45
47
46
48
#ifndef HAS_LOGF128
47
49
ASSERT_TRUE (FoldResult == nullptr );
@@ -58,10 +60,10 @@ TEST(ConstantFoldLogf128Fixture, ConstantFoldLogf128) {
58
60
59
61
ASSERT_STREQ (LongDoubleHexString,
60
62
std::string (" 0X1.62E42FEFA39EF000000000000000000P-1" ).c_str ());
61
- #endif // HAS_LOGF128
62
- #else // __FLOAT128__
63
+ #endif // HAS_LOGF128
64
+ #else // __FLOAT128__
63
65
ASSERT_TRUE (true );
64
66
#endif
65
67
}
66
68
67
- }
69
+ } // namespace
0 commit comments