runtime-library-subtarget.ll 479 B

123456789101112131415161718
  1. ; Check that user-defined runtime library function __addsf3vfp is not removed
  2. ;
  3. ; RUN: llvm-as <%s >%t1
  4. ; RUN: llvm-lto -o %t2 %t1 -mcpu arm1176jz-s
  5. ; RUN: llvm-nm %t2 | FileCheck %s
  6. target datalayout = "e-m:o-p:32:32-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32"
  7. target triple = "thumbv7-apple-ios"
  8. ; CHECK: ___addsf3vfp
  9. define float @__addsf3vfp(float %a, float %b) #0 {
  10. entry:
  11. %add = fadd float %a, %b
  12. ret float %add
  13. }
  14. attributes #0 = { "target-cpu"="arm1176jzf-s"}