mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
4d5b8ccd07
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50594 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
348 B
C
11 lines
348 B
C
// 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);
|
|
}
|
|
|