blob: e9e31dbada60f50ec8899e1ea36a385b3d5b1064 [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\\.f64}
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.*exp2}
6
7double exp2(double);
8
9double t4(unsigned char x) {
10 return exp2(x);
11}
12