OLD | NEW |
1 target triple = "i686-pc-linux-gnu" | |
2 | |
3 declare float @llvm.sqrt.f32(float) | 1 declare float @llvm.sqrt.f32(float) |
4 declare double @llvm.sqrt.f64(double) | 2 declare double @llvm.sqrt.f64(double) |
5 | 3 |
6 define float @_Z6mySqrtf(float %a) { | 4 define float @_Z6mySqrtf(float %a) { |
7 %x = call float @llvm.sqrt.f32(float %a) | 5 %x = call float @llvm.sqrt.f32(float %a) |
8 ret float %x | 6 ret float %x |
9 } | 7 } |
10 | 8 |
11 define double @_Z6mySqrtd(double %a) { | 9 define double @_Z6mySqrtd(double %a) { |
12 %x = call double @llvm.sqrt.f64(double %a) | 10 %x = call double @llvm.sqrt.f64(double %a) |
13 ret double %x | 11 ret double %x |
14 } | 12 } |
OLD | NEW |