From b11d5d65e81847ecba41357949ff480133465803 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 5 Oct 2008 06:34:45 +0000 Subject: [PATCH] Add some builtins to codegen test case. llvm-svn: 57101 --- clang/test/CodeGen/builtins.c | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/clang/test/CodeGen/builtins.c b/clang/test/CodeGen/builtins.c index 8e45e5d11b55..e7055d9ad8a4 100644 --- a/clang/test/CodeGen/builtins.c +++ b/clang/test/CodeGen/builtins.c @@ -38,15 +38,26 @@ int main() { // P(fpclassify, (FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, 1.0)); // P(isinf_sign, (1.0)); - // FIXME: - // XXX I don't know what the string arg is for - Q(nan, ("0x12")); - Q(nanf, ("0x12")); - Q(nanl, ("0x12")); - Q(nans, ("0x12")); + Q(nan, ("")); + Q(nanf, ("")); + Q(nanl, ("")); + Q(nans, ("")); + Q(nan, ("10")); + Q(nanf, ("10")); + Q(nanl, ("10")); + Q(nans, ("10")); + + P(isgreater, (1., 2.)); + P(isgreaterequal, (1., 2.)); + P(isless, (1., 2.)); + P(islessequal, (1., 2.)); + P(islessgreater, (1., 2.)); + P(isunordered, (1., 2.)); // Bitwise & Numeric Functions + P(abs, (N)); + P(clz, (N)); P(clzl, (N)); P(clzll, (N));