Add support for this builtin:
double builtin_truncf128_round_to_odd(float128)
Differential Revision: https://reviews.llvm.org/D48482
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@336596
91177308-0d34-0410-b5e6-
96231b3b80d8
BUILTIN(__builtin_mulf128_round_to_odd, "LLdLLdLLd", "")
BUILTIN(__builtin_divf128_round_to_odd, "LLdLLdLLd", "")
BUILTIN(__builtin_fmaf128_round_to_odd, "LLdLLdLLdLLd", "")
+BUILTIN(__builtin_truncf128_round_to_odd, "dLLd", "")
// HTM builtins
BUILTIN(__builtin_tbegin, "UiUIi", "")
// CHECK-NEXT: ret fp128
}
+double testTruncOdd() {
+ return __builtin_truncf128_round_to_odd(A);
+// CHECK: @llvm.ppc.truncf128.round.to.odd(fp128
+// CHECK-NEXT: ret double
+}