2014-04-22 18:10:09 +08:00
|
|
|
; RUN: llc -mtriple=armv6-apple-ios -mcpu=arm1136jf-s -o - %s | FileCheck %s --check-prefix=CHECK-HARD
|
|
|
|
; RUN: llc -mtriple=thumbv6-apple-ios -mcpu=arm1136jf-s -o - %s | FileCheck %s --check-prefix=CHECK-SOFTISH
|
2015-05-12 09:26:05 +08:00
|
|
|
; RUN: llc -mtriple=armv7s-apple-ios -mattr=+soft-float -mcpu=arm1136jf-s -o - %s | FileCheck %s --check-prefix=CHECK-SOFT
|
2014-04-22 18:10:09 +08:00
|
|
|
|
|
|
|
define float @test_call(float %a, float %b) {
|
|
|
|
; CHECK-HARD: vadd.f32 {{s[0-9]+}}, {{s[0-9]+}}, {{s[0-9]+}}
|
2016-05-11 03:17:47 +08:00
|
|
|
; CHECK-SOFTISH: bl ___addsf3vfp
|
2014-04-22 18:10:09 +08:00
|
|
|
; CHECK-SOFT: bl ___addsf3{{$}}
|
|
|
|
%sum = fadd float %a, %b
|
|
|
|
ret float %sum
|
2015-05-12 09:26:05 +08:00
|
|
|
}
|