blob: c027ea4125e69a770b0645c6677c05c9d4a7d57c [file] [log] [blame]
Chris Lattner4d5b8cc2008-05-02 22:07:34 +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.*exp2f}
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.*exp2f}
6
7float t4(unsigned char x) {
8 return exp2f(x);
9}
10