1 ; RUN: llc < %s -asm-verbose=false -mtriple=aarch64-none-eabi | FileCheck %s
3 ; Test pattern (v4f16 (AArch64NvCast (v2i32 FPR64:$src)))
4 define void @nvcast_v2i32(<4 x half>* %a) #0 {
5 ; CHECK-LABEL: nvcast_v2i32:
6 ; CHECK-NEXT: movi v[[REG:[0-9]+]].2s, #171, lsl #16
7 ; CHECK-NEXT: str d[[REG]], [x0]
9 store volatile <4 x half> <half 0xH0000, half 0xH00AB, half 0xH0000, half 0xH00AB>, <4 x half>* %a
14 ; Test pattern (v4f16 (AArch64NvCast (v4i16 FPR64:$src)))
15 define void @nvcast_v4i16(<4 x half>* %a) #0 {
16 ; CHECK-LABEL: nvcast_v4i16:
17 ; CHECK-NEXT: movi v[[REG:[0-9]+]].4h, #171
18 ; CHECK-NEXT: str d[[REG]], [x0]
20 store volatile <4 x half> <half 0xH00AB, half 0xH00AB, half 0xH00AB, half 0xH00AB>, <4 x half>* %a
25 ; Test pattern (v4f16 (AArch64NvCast (v8i8 FPR64:$src)))
26 define void @nvcast_v8i8(<4 x half>* %a) #0 {
27 ; CHECK-LABEL: nvcast_v8i8:
28 ; CHECK-NEXT: movi v[[REG:[0-9]+]].8b, #171
29 ; CHECK-NEXT: str d[[REG]], [x0]
31 store volatile <4 x half> <half 0xHABAB, half 0xHABAB, half 0xHABAB, half 0xHABAB>, <4 x half>* %a
36 ; Test pattern (v4f16 (AArch64NvCast (f64 FPR64:$src)))
37 define void @nvcast_f64(<4 x half>* %a) #0 {
38 ; CHECK-LABEL: nvcast_f64:
39 ; CHECK-NEXT: movi d[[REG:[0-9]+]], #0000000000000000
40 ; CHECK-NEXT: str d[[REG]], [x0]
42 store volatile <4 x half> zeroinitializer, <4 x half>* %a
46 ; Test pattern (v8f16 (AArch64NvCast (v4i32 FPR128:$src)))
47 define void @nvcast_v4i32(<8 x half>* %a) #0 {
48 ; CHECK-LABEL: nvcast_v4i32:
49 ; CHECK-NEXT: movi v[[REG:[0-9]+]].4s, #171, lsl #16
50 ; CHECK-NEXT: str q[[REG]], [x0]
52 store volatile <8 x half> <half 0xH0000, half 0xH00AB, half 0xH0000, half 0xH00AB, half 0xH0000, half 0xH00AB, half 0xH0000, half 0xH00AB>, <8 x half>* %a
57 ; Test pattern (v8f16 (AArch64NvCast (v8i16 FPR128:$src)))
58 define void @nvcast_v8i16(<8 x half>* %a) #0 {
59 ; CHECK-LABEL: nvcast_v8i16:
60 ; CHECK-NEXT: movi v[[REG:[0-9]+]].8h, #171
61 ; CHECK-NEXT: str q[[REG]], [x0]
63 store volatile <8 x half> <half 0xH00AB, half 0xH00AB, half 0xH00AB, half 0xH00AB, half 0xH00AB, half 0xH00AB, half 0xH00AB, half 0xH00AB>, <8 x half>* %a
68 ; Test pattern (v8f16 (AArch64NvCast (v16i8 FPR128:$src)))
69 define void @nvcast_v16i8(<8 x half>* %a) #0 {
70 ; CHECK-LABEL: nvcast_v16i8:
71 ; CHECK-NEXT: movi v[[REG:[0-9]+]].16b, #171
72 ; CHECK-NEXT: str q[[REG]], [x0]
74 store volatile <8 x half> <half 0xHABAB, half 0xHABAB, half 0xHABAB, half 0xHABAB, half 0xHABAB, half 0xHABAB, half 0xHABAB, half 0xHABAB>, <8 x half>* %a
79 ; Test pattern (v8f16 (AArch64NvCast (v2i64 FPR128:$src)))
80 define void @nvcast_v2i64(<8 x half>* %a) #0 {
81 ; CHECK-LABEL: nvcast_v2i64:
82 ; CHECK-NEXT: movi v[[REG:[0-9]+]].2d, #0000000000000000
83 ; CHECK-NEXT: str q[[REG]], [x0]
85 store volatile <8 x half> zeroinitializer, <8 x half>* %a
89 attributes #0 = { nounwind }