From 0b85642898bd81209e56e8098c065e2975d455a0 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Thu, 29 May 2008 19:17:15 +0000 Subject: For PR1338: Rename test dirs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51695 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/FrontendC/libcalls.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/FrontendC/libcalls.c (limited to 'test/FrontendC/libcalls.c') diff --git a/test/FrontendC/libcalls.c b/test/FrontendC/libcalls.c new file mode 100644 index 0000000000..c027ea4125 --- /dev/null +++ b/test/FrontendC/libcalls.c @@ -0,0 +1,10 @@ +// llvm-gcc -O1+ should run simplify libcalls, O0 shouldn't +// and -fno-builtins shouldn't. +// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep {call.*exp2f} +// RUN: %llvmgcc %s -S -emit-llvm -O1 -o - | grep {call.*ldexp} +// RUN: %llvmgcc %s -S -emit-llvm -O3 -fno-builtin -o - | grep {call.*exp2f} + +float t4(unsigned char x) { + return exp2f(x); +} + -- cgit v1.2.3