blob: ce612e91c37e59400adaf2ce036a24b58d3e3454 [file] [log] [blame]
Dale Johannesen928e8652008-09-04 18:44:20 +00001// llvm-gcc -O1+ should run simplify libcalls, O0 shouldn't
2// and -fno-builtins shouldn't.
3// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep {call.*exp2\\..*f}
4// RUN: %llvmgcc %s -S -emit-llvm -O1 -o - | grep {call.*ldexp}
5// RUN: %llvmgcc %s -S -emit-llvm -O3 -fno-builtin -o - | grep {call.*exp2l}
6
7// If this fails for you because your target doesn't support long double,
8// please xfail the test.
9
10long double exp2l(long double);
11
12long double t4(unsigned char x) {
13 return exp2l(x);
14}
15