source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/vfp-libcalls.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 554 bytes
Line 
1; RUN: llc -mtriple=armv6-apple-ios -mcpu=arm1136jf-s -o - %s | FileCheck %s --check-prefix=CHECK-HARD
2; RUN: llc -mtriple=thumbv6-apple-ios -mcpu=arm1136jf-s -o - %s | FileCheck %s --check-prefix=CHECK-SOFTISH
3; RUN: llc -mtriple=armv7s-apple-ios -mattr=+soft-float -mcpu=arm1136jf-s -o - %s | FileCheck %s --check-prefix=CHECK-SOFT
4
5define float @test_call(float %a, float %b) {
6; CHECK-HARD: vadd.f32 {{s[0-9]+}}, {{s[0-9]+}}, {{s[0-9]+}}
7; CHECK-SOFTISH: blx ___addsf3vfp
8; CHECK-SOFT: bl ___addsf3{{$}}
9  %sum = fadd float %a, %b
10  ret float %sum
11}
Note: See TracBrowser for help on using the repository browser.