llvm/test/CodeGen/AArch64/arm64-extend-int-to-fp.ll
Simon Pilgrim e927841848 [AARCH64] Enable AARCH64 lit tests on windows dev machines
As discussed on PR27654, this patch fixes the triples of a lot of aarch64 tests and enables lit tests on windows

This will hopefully help stop cases where windows developers break the aarch64 target

Differential Revision: https://reviews.llvm.org/D22191

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275973 91177308-0d34-0410-b5e6-96231b3b80d8
2016-07-19 13:35:11 +00:00

20 lines
522 B
LLVM

; RUN: llc < %s -mtriple=arm64-eabi -aarch64-neon-syntax=apple | FileCheck %s
define <4 x float> @foo(<4 x i16> %a) nounwind {
; CHECK-LABEL: foo:
; CHECK: ushll.4s v0, v0, #0
; CHECK-NEXT: ucvtf.4s v0, v0
; CHECK-NEXT: ret
%vcvt.i = uitofp <4 x i16> %a to <4 x float>
ret <4 x float> %vcvt.i
}
define <4 x float> @bar(<4 x i16> %a) nounwind {
; CHECK-LABEL: bar:
; CHECK: sshll.4s v0, v0, #0
; CHECK-NEXT: scvtf.4s v0, v0
; CHECK-NEXT: ret
%vcvt.i = sitofp <4 x i16> %a to <4 x float>
ret <4 x float> %vcvt.i
}