1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/CodeGen/AArch64/arm64-extend-int-to-fp.ll
Simon Pilgrim 91bb437eb8 [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

llvm-svn: 275973
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
}