1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=aarch64 | FileCheck %s
4 ; Test pattern (v4f16 (AArch64NvCast (v2i32 FPR64:$src)))
5 define void @nvcast_v2i32(ptr %a) #0 {
6 ; CHECK-LABEL: nvcast_v2i32:
8 ; CHECK-NEXT: movi v0.2s, #171, lsl #16
9 ; CHECK-NEXT: str d0, [x0]
11 store volatile <4 x half> <half 0xH0000, half 0xH00AB, half 0xH0000, half 0xH00AB>, ptr %a
15 ; Test pattern (v4f16 (AArch64NvCast (v4i16 FPR64:$src)))
16 define void @nvcast_v4i16(ptr %a) #0 {
17 ; CHECK-LABEL: nvcast_v4i16:
19 ; CHECK-NEXT: movi v0.4h, #171
20 ; CHECK-NEXT: str d0, [x0]
22 store volatile <4 x half> <half 0xH00AB, half 0xH00AB, half 0xH00AB, half 0xH00AB>, ptr %a
26 ; Test pattern (v4f16 (AArch64NvCast (v8i8 FPR64:$src)))
27 define void @nvcast_v8i8(ptr %a) #0 {
28 ; CHECK-LABEL: nvcast_v8i8:
30 ; CHECK-NEXT: movi v0.8b, #171
31 ; CHECK-NEXT: str d0, [x0]
33 store volatile <4 x half> <half 0xHABAB, half 0xHABAB, half 0xHABAB, half 0xHABAB>, ptr %a
37 ; Test pattern (v4f16 (AArch64NvCast (f64 FPR64:$src)))
38 define void @nvcast_f64(ptr %a) #0 {
39 ; CHECK-LABEL: nvcast_f64:
41 ; CHECK-NEXT: movi d0, #0000000000000000
42 ; CHECK-NEXT: str d0, [x0]
44 store volatile <4 x half> zeroinitializer, ptr %a
48 ; Test pattern (v8f16 (AArch64NvCast (v4i32 FPR128:$src)))
49 define void @nvcast_v4i32(ptr %a) #0 {
50 ; CHECK-LABEL: nvcast_v4i32:
52 ; CHECK-NEXT: movi v0.4s, #171, lsl #16
53 ; CHECK-NEXT: str q0, [x0]
55 store volatile <8 x half> <half 0xH0000, half 0xH00AB, half 0xH0000, half 0xH00AB, half 0xH0000, half 0xH00AB, half 0xH0000, half 0xH00AB>, ptr %a
59 ; Test pattern (v8f16 (AArch64NvCast (v8i16 FPR128:$src)))
60 define void @nvcast_v8i16(ptr %a) #0 {
61 ; CHECK-LABEL: nvcast_v8i16:
63 ; CHECK-NEXT: movi v0.8h, #171
64 ; CHECK-NEXT: str q0, [x0]
66 store volatile <8 x half> <half 0xH00AB, half 0xH00AB, half 0xH00AB, half 0xH00AB, half 0xH00AB, half 0xH00AB, half 0xH00AB, half 0xH00AB>, ptr %a
70 ; Test pattern (v8f16 (AArch64NvCast (v16i8 FPR128:$src)))
71 define void @nvcast_v16i8(ptr %a) #0 {
72 ; CHECK-LABEL: nvcast_v16i8:
74 ; CHECK-NEXT: movi v0.16b, #171
75 ; CHECK-NEXT: str q0, [x0]
77 store volatile <8 x half> <half 0xHABAB, half 0xHABAB, half 0xHABAB, half 0xHABAB, half 0xHABAB, half 0xHABAB, half 0xHABAB, half 0xHABAB>, ptr %a
81 ; Test pattern (v8f16 (AArch64NvCast (v2i64 FPR128:$src)))
82 define void @nvcast_v2i64(ptr %a) #0 {
83 ; CHECK-LABEL: nvcast_v2i64:
85 ; CHECK-NEXT: movi v0.2d, #0000000000000000
86 ; CHECK-NEXT: str q0, [x0]
88 store volatile <8 x half> zeroinitializer, ptr %a
92 attributes #0 = { nounwind }