Skip to content
Snippets Groups Projects
Commit 17b3c0dd authored by Eli Bendersky's avatar Eli Bendersky
Browse files

Make the nomathbuiltin.c test less demanding.

This should hopefully unbreak the Windows bots at http://bb.pgr.jp



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186906 91177308-0d34-0410-b5e6-96231b3b80d8
parent 683a37b2
No related branches found
No related tags found
No related merge requests found
// RUN: %clang_cc1 -fno-math-builtin -emit-llvm -o - %s | FileCheck %s // RUN: %clang_cc1 -fno-math-builtin -emit-llvm -o - %s | FileCheck %s
// Check that the -fno-math-builtin option for -cc1 is working properly, // Check that the -fno-math-builtin option for -cc1 is working properly.
// by disabling just math builtin generation (other lib functions will
// be generated as builtins).
extern char *p1, *p2;
double pow(double, double); double pow(double, double);
void *memcpy(void *, const void *, unsigned long);
double foo(double a, double b) { double foo(double a, double b) {
memcpy(p1, p2, (unsigned long) b);
// CHECK: call void @llvm.memcpy
return pow(a, b); return pow(a, b);
// CHECK: call double @pow // CHECK: call double @pow
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment