You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.161
Former-commit-id: 4db48158d3a35497b8f118ab21b5f08ac3d86d98
This commit is contained in:
parent
37fbf886a3
commit
e19d552987
25
external/llvm/test/CodeGen/ARM/default-float-abi.ll
vendored
Normal file
25
external/llvm/test/CodeGen/ARM/default-float-abi.ll
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
; RUN: llc -mtriple=armv7-linux-gnueabihf %s -o - | FileCheck %s --check-prefix=CHECK-HARD
|
||||
; RUN: llc -mtriple=armv7-linux-musleabihf %s -o - | FileCheck %s --check-prefix=CHECK-HARD
|
||||
; RUN: llc -mtriple=armv7-linux-eabihf %s -o - | FileCheck %s --check-prefix=CHECK-HARD
|
||||
; RUN: llc -mtriple=armv7-linux-gnueabihf -float-abi=soft %s -o - | FileCheck %s --check-prefix=CHECK-SOFT
|
||||
; RUN: llc -mtriple=armv7-linux-musleabihf -float-abi=soft %s -o - | FileCheck %s --check-prefix=CHECK-SOFT
|
||||
; RUN: llc -mtriple=armv7-linux-gnueabi %s -o - | FileCheck %s --check-prefix=CHECK-SOFT
|
||||
; RUN: llc -mtriple=armv7-linux-musleabi %s -o - | FileCheck %s --check-prefix=CHECK-SOFT
|
||||
; RUN: llc -mtriple=armv7-linux-eabi -float-abi=hard %s -o - | FileCheck %s --check-prefix=CHECK-HARD
|
||||
; RUN: llc -mtriple=thumbv7-apple-ios6.0 %s -o - | FileCheck %s --check-prefix=CHECK-SOFT
|
||||
|
||||
define float @test_abi(float %lhs, float %rhs) {
|
||||
%sum = fadd float %lhs, %rhs
|
||||
ret float %sum
|
||||
|
||||
; CHECK-HARD-LABEL: test_abi:
|
||||
; CHECK-HARD-NOT: vmov
|
||||
; CHECK-HARD: vadd.f32 s0, s0, s1
|
||||
; CHECK-HARD-NOT: vmov
|
||||
|
||||
; CHECK-SOFT-LABEL: test_abi:
|
||||
; CHECK-SOFT-DAG: vmov [[LHS:s[0-9]+]], r0
|
||||
; CHECK-SOFT-DAG: vmov [[RHS:s[0-9]+]], r1
|
||||
; CHECK-SOFT: vadd.f32 [[DEST:s[0-9]+]], [[LHS]], [[RHS]]
|
||||
; CHECK-SOFT: vmov r0, [[DEST]]
|
||||
}
|
Reference in New Issue
Block a user