Fix Mips, Sparc, and XCore tests that were dependent on register allocation.
[oota-llvm.git] / test / CodeGen / XCore / log.ll
1 ; RUN: llc < %s -march=xcore > %t1.s
2 ; RUN: grep "bl logf" %t1.s | count 1
3 ; RUN: grep "bl log" %t1.s | count 2
4 declare double @llvm.log.f64(double)
5
6 define double @test(double %F) {
7         %result = call double @llvm.log.f64(double %F)
8         ret double %result
9 }
10
11 declare float @llvm.log.f32(float)
12
13 define float @testf(float %F) {
14         %result = call float @llvm.log.f32(float %F)
15         ret float %result
16 }