summaryrefslogtreecommitdiff
path: root/test/CFrontend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-20 19:08:12 +0000
committerChris Lattner <sabre@nondot.org>2004-02-20 19:08:12 +0000
commit54e4e20286ee28023867a5f4fa072eaae3674d2f (patch)
tree5f1855e51a267c6daf02989726eb8bd232e321a1 /test/CFrontend
parent98328745041aa3c352796347d89cd62d5b6ab808 (diff)
downloadllvm-54e4e20286ee28023867a5f4fa072eaae3674d2f.tar.gz
llvm-54e4e20286ee28023867a5f4fa072eaae3674d2f.tar.bz2
llvm-54e4e20286ee28023867a5f4fa072eaae3674d2f.tar.xz
New testcase, do not emit a call to __builtin_sqrt, emit a call to sqrt instead!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11668 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend')
-rw-r--r--test/CFrontend/2004-02-20-Builtins.c.tr6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CFrontend/2004-02-20-Builtins.c.tr b/test/CFrontend/2004-02-20-Builtins.c.tr
new file mode 100644
index 0000000000..82b7dc1f34
--- /dev/null
+++ b/test/CFrontend/2004-02-20-Builtins.c.tr
@@ -0,0 +1,6 @@
+// RUN: %llvmgcc -O3 -xc %s -c -o - | llvm-dis | not grep builtin
+
+void zsqrtxxx(float num) {
+ num = sqrt(num);
+}
+