[ARM64] Set default CPU to generic instead of cyclone.
[oota-llvm.git] / test / CodeGen / ARM64 / convert-v2i32-v2f64.ll
1 ; RUN: llc < %s -march=arm64 -arm64-neon-syntax=apple | FileCheck %s
2
3 define <2 x double> @f1(<2 x i32> %v) nounwind readnone {
4 ; CHECK-LABEL: f1:
5 ; CHECK: sshll.2d v0, v0, #0
6 ; CHECK-NEXT: scvtf.2d v0, v0
7 ; CHECK-NEXT: ret
8   %conv = sitofp <2 x i32> %v to <2 x double>
9   ret <2 x double> %conv
10 }
11 define <2 x double> @f2(<2 x i32> %v) nounwind readnone {
12 ; CHECK-LABEL: f2:
13 ; CHECK: ushll.2d v0, v0, #0
14 ; CHECK-NEXT: ucvtf.2d v0, v0
15 ; CHECK-NEXT: ret
16   %conv = uitofp <2 x i32> %v to <2 x double>
17   ret <2 x double> %conv
18 }
19
20 ; CHECK: autogen_SD19655
21 ; CHECK: scvtf
22 ; CHECK: ret
23 define void @autogen_SD19655() {
24   %T = load <2 x i64>* undef
25   %F = sitofp <2 x i64> undef to <2 x float>
26   store <2 x float> %F, <2 x float>* undef
27   ret void
28 }
29