2016-01-13 08:02:40 +08:00
|
|
|
; RUN: llc -mtriple=armv8 -mcpu=cyclone < %s | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-NOTSWIFT
|
2016-04-20 07:51:52 +08:00
|
|
|
; RUN: llc -mtriple=armv8 -mcpu=swift < %s | FileCheck %s
|
2016-01-13 08:02:40 +08:00
|
|
|
; RUN: llc -mtriple=armv8 -mcpu=cortex-a57 < %s | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-NOTSWIFT
|
2014-04-01 21:22:02 +08:00
|
|
|
|
|
|
|
declare arm_aapcs_vfpcc void @take_vec64(<2 x i32>)
|
|
|
|
|
|
|
|
define void @test_vec64() {
|
2016-01-13 08:02:40 +08:00
|
|
|
; CHECK-LABEL: test_vec64:
|
2014-04-01 21:22:02 +08:00
|
|
|
|
|
|
|
call arm_aapcs_vfpcc void @take_vec64(<2 x i32> <i32 0, i32 0>)
|
|
|
|
call arm_aapcs_vfpcc void @take_vec64(<2 x i32> <i32 0, i32 0>)
|
2016-01-13 08:02:40 +08:00
|
|
|
; CHECK-NOTSWIFT-NOT: vmov.f64 d0,
|
|
|
|
; CHECK: vmov.i32 d0, #0
|
|
|
|
; CHECK: bl
|
|
|
|
; CHECK: vmov.i32 d0, #0
|
|
|
|
; CHECK: bl
|
2014-04-01 21:22:02 +08:00
|
|
|
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare arm_aapcs_vfpcc void @take_vec128(<8 x i16>)
|
|
|
|
|
|
|
|
define void @test_vec128() {
|
2016-01-13 08:02:40 +08:00
|
|
|
; CHECK-LABEL: test_vec128:
|
2014-04-01 21:22:02 +08:00
|
|
|
|
|
|
|
call arm_aapcs_vfpcc void @take_vec128(<8 x i16> <i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0>)
|
|
|
|
call arm_aapcs_vfpcc void @take_vec128(<8 x i16> <i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0>)
|
2016-01-13 08:02:40 +08:00
|
|
|
; CHECK-NOT: vmov.f64 [[ZEROREG:d[0-9]+]],
|
|
|
|
; CHECK: vmov.i32 q0, #0
|
|
|
|
; CHECK: bl
|
|
|
|
; CHECK: vmov.i32 q0, #0
|
|
|
|
; CHECK: bl
|
2014-04-01 21:22:02 +08:00
|
|
|
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @take_i32(i32)
|
|
|
|
|
|
|
|
define void @test_i32() {
|
2016-01-13 08:02:40 +08:00
|
|
|
; CHECK-LABEL: test_i32:
|
2014-04-01 21:22:02 +08:00
|
|
|
|
|
|
|
call arm_aapcs_vfpcc void @take_i32(i32 0)
|
|
|
|
call arm_aapcs_vfpcc void @take_i32(i32 0)
|
2016-01-13 08:02:40 +08:00
|
|
|
; CHECK-NOTSWIFT-NOT: vmov.f64 [[ZEROREG:d[0-9]+]],
|
|
|
|
; CHECK: mov r0, #0
|
|
|
|
; CHECK: bl
|
|
|
|
; CHECK: mov r0, #0
|
|
|
|
; CHECK: bl
|
2014-04-01 21:22:02 +08:00
|
|
|
|
|
|
|
; It doesn't particularly matter what Swift does here, there isn't carefully
|
|
|
|
; crafted behaviour that we might break in Cyclone.
|
|
|
|
|
|
|
|
ret void
|
|
|
|
}
|