mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
verify builtin optimization works like gcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50594 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
866b9e1520
commit
4d5b8ccd07
10
test/CFrontend/libcalls.c
Normal file
10
test/CFrontend/libcalls.c
Normal file
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user