math.ll 733 B

12345678910111213141516171819
  1. target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:64:128-a0:0:64-n32-S64"
  2. target triple = "armv7-none-linux-gnueabi"
  3. declare float @llvm.sqrt.f32(float)
  4. declare float @llvm.pow.f32(float, float)
  5. declare float @llvm.fabs.f32(float)
  6. declare <2 x float> @llvm.fabs.v2f32(<2 x float>)
  7. declare <3 x float> @llvm.fabs.v3f32(<3 x float>)
  8. declare <4 x float> @llvm.fabs.v4f32(<4 x float>)
  9. define float @_Z4sqrtf(float %v) nounwind readnone alwaysinline {
  10. %1 = tail call float @llvm.sqrt.f32(float %v)
  11. ret float %1
  12. }
  13. define float @_Z3powff(float %v1, float %v2) nounwind readnone alwaysinline {
  14. %1 = tail call float @llvm.pow.f32(float %v1, float %v2)
  15. ret float %1
  16. }