]> granicus.if.org Git - clang/commitdiff
The second parameter of nexttoward is always long double.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 28 Sep 2013 17:41:03 +0000 (17:41 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 28 Sep 2013 17:41:03 +0000 (17:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191623 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Builtins.def
test/CodeGen/libcall-declarations.c

index 107648e379a06fc0b80b167a57cfbd1f64a4c2f4..23a8513ca1bccde2b5cca260d284d8965af0d9cf 100644 (file)
@@ -239,8 +239,8 @@ BUILTIN(__builtin_nearbyintl, "LdLd", "Fnc")
 BUILTIN(__builtin_nextafter , "ddd", "Fnc")
 BUILTIN(__builtin_nextafterf, "fff", "Fnc")
 BUILTIN(__builtin_nextafterl, "LdLdLd", "Fnc")
-BUILTIN(__builtin_nexttoward , "ddd", "Fnc")
-BUILTIN(__builtin_nexttowardf, "fff", "Fnc")
+BUILTIN(__builtin_nexttoward , "ddLd", "Fnc")
+BUILTIN(__builtin_nexttowardf, "ffLd", "Fnc")
 BUILTIN(__builtin_nexttowardl, "LdLdLd", "Fnc")
 BUILTIN(__builtin_remainder , "ddd", "Fnc")
 BUILTIN(__builtin_remainderf, "fff", "Fnc")
@@ -993,8 +993,8 @@ LIBBUILTIN(nextafter, "ddd", "fne", "math.h", ALL_LANGUAGES)
 LIBBUILTIN(nextafterf, "fff", "fne", "math.h", ALL_LANGUAGES)
 LIBBUILTIN(nextafterl, "LdLdLd", "fne", "math.h", ALL_LANGUAGES)
 
-LIBBUILTIN(nexttoward, "ddd", "fne", "math.h", ALL_LANGUAGES)
-LIBBUILTIN(nexttowardf, "fff", "fne", "math.h", ALL_LANGUAGES)
+LIBBUILTIN(nexttoward, "ddLd", "fne", "math.h", ALL_LANGUAGES)
+LIBBUILTIN(nexttowardf, "ffLd", "fne", "math.h", ALL_LANGUAGES)
 LIBBUILTIN(nexttowardl, "LdLdLd", "fne", "math.h", ALL_LANGUAGES)
 
 LIBBUILTIN(remainder, "ddd", "fne", "math.h", ALL_LANGUAGES)
index 2a2c41859d3731634ef6f7e0631cb7510670be2b..6442e29bd86ee867fc35114d71049f7f006bf441 100644 (file)
@@ -139,8 +139,8 @@ long double nearbyintl(long double);
 double nextafter(double, double);
 float nextafterf(float, float);
 long double nextafterl(long double, long double);
-double nexttoward(double, double);
-float nexttowardf(float, float);
+double nexttoward(double, long double);
+float nexttowardf(float, long double);
 long double nexttowardl(long double, long double);
 double remainder(double, double);
 float remainderf(float, float);
@@ -427,8 +427,8 @@ void *use[] = {
 // CHECK-NOERRNO: declare double @nextafter(double, double) [[NUW]]
 // CHECK-NOERRNO: declare float @nextafterf(float, float) [[NUW]]
 // CHECK-NOERRNO: declare x86_fp80 @nextafterl(x86_fp80, x86_fp80) [[NUW]]
-// CHECK-NOERRNO: declare double @nexttoward(double, double) [[NUW]]
-// CHECK-NOERRNO: declare float @nexttowardf(float, float) [[NUW]]
+// CHECK-NOERRNO: declare double @nexttoward(double, x86_fp80) [[NUW]]
+// CHECK-NOERRNO: declare float @nexttowardf(float, x86_fp80) [[NUW]]
 // CHECK-NOERRNO: declare x86_fp80 @nexttowardl(x86_fp80, x86_fp80) [[NUW]]
 // CHECK-NOERRNO: declare double @remainder(double, double) [[NUW]]
 // CHECK-NOERRNO: declare float @remainderf(float, float) [[NUW]]