Akira Hatanaka | 8fba18e | 2015-01-30 01:16:24 +0000 | [diff] [blame] | 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 | |
| 7 | target datalayout = "e-m:o-p:32:32-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32" |
| 8 | target triple = "thumbv7-apple-ios" |
| 9 | |
| 10 | ; CHECK: ___addsf3vfp |
| 11 | |
| 12 | define float @__addsf3vfp(float %a, float %b) #0 { |
| 13 | entry: |
| 14 | %add = fadd float %a, %b |
| 15 | ret float %add |
| 16 | } |
| 17 | |
| 18 | attributes #0 = { "target-cpu"="arm1176jzf-s"} |