1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=x86_64-linux-gnu -mattr=+avx512f -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=AVX512F
4 define <16 x i32> @test_load_v16i32_noalign(<16 x i32>* %p1) {
5 %r = load <16 x i32>, <16 x i32>* %p1, align 1
9 define <16 x i32> @test_load_v16i32_align(<16 x i32>* %p1) {
10 %r = load <16 x i32>, <16 x i32>* %p1, align 32
14 define void @test_store_v16i32_noalign(<16 x i32> %val, <16 x i32>* %p1) {
15 store <16 x i32> %val, <16 x i32>* %p1, align 1
19 define void @test_store_v16i32_align(<16 x i32> %val, <16 x i32>* %p1) {
20 store <16 x i32> %val, <16 x i32>* %p1, align 32
26 name: test_load_v16i32_noalign
31 - { id: 0, class: gpr }
32 - { id: 1, class: vecr }
37 ; AVX512F-LABEL: name: test_load_v16i32_noalign
38 ; AVX512F: [[COPY:%[0-9]+]]:gr64 = COPY $rdi
39 ; AVX512F: [[VMOVUPSZrm:%[0-9]+]]:vr512 = VMOVUPSZrm [[COPY]], 1, $noreg, 0, $noreg :: (load 64 from %ir.p1, align 1)
40 ; AVX512F: $zmm0 = COPY [[VMOVUPSZrm]]
41 ; AVX512F: RET 0, implicit $zmm0
43 %1(<16 x s32>) = G_LOAD %0(p0) :: (load 64 from %ir.p1, align 1)
44 $zmm0 = COPY %1(<16 x s32>)
49 name: test_load_v16i32_align
54 - { id: 0, class: gpr }
55 - { id: 1, class: vecr }
60 ; AVX512F-LABEL: name: test_load_v16i32_align
61 ; AVX512F: [[COPY:%[0-9]+]]:gr64 = COPY $rdi
62 ; AVX512F: [[VMOVUPSZrm:%[0-9]+]]:vr512 = VMOVUPSZrm [[COPY]], 1, $noreg, 0, $noreg :: (load 64 from %ir.p1, align 32)
63 ; AVX512F: $zmm0 = COPY [[VMOVUPSZrm]]
64 ; AVX512F: RET 0, implicit $zmm0
66 %1(<16 x s32>) = G_LOAD %0(p0) :: (load 64 from %ir.p1, align 32)
67 $zmm0 = COPY %1(<16 x s32>)
72 name: test_store_v16i32_noalign
77 - { id: 0, class: vecr }
78 - { id: 1, class: gpr }
83 ; AVX512F-LABEL: name: test_store_v16i32_noalign
84 ; AVX512F: [[COPY:%[0-9]+]]:vr512 = COPY $zmm0
85 ; AVX512F: [[COPY1:%[0-9]+]]:gr64 = COPY $rdi
86 ; AVX512F: VMOVUPSZmr [[COPY1]], 1, $noreg, 0, $noreg, [[COPY]] :: (store 64 into %ir.p1, align 1)
88 %0(<16 x s32>) = COPY $zmm0
90 G_STORE %0(<16 x s32>), %1(p0) :: (store 64 into %ir.p1, align 1)
95 name: test_store_v16i32_align
100 - { id: 0, class: vecr }
101 - { id: 1, class: gpr }
106 ; AVX512F-LABEL: name: test_store_v16i32_align
107 ; AVX512F: [[COPY:%[0-9]+]]:vr512 = COPY $zmm0
108 ; AVX512F: [[COPY1:%[0-9]+]]:gr64 = COPY $rdi
109 ; AVX512F: VMOVUPSZmr [[COPY1]], 1, $noreg, 0, $noreg, [[COPY]] :: (store 64 into %ir.p1, align 32)
111 %0(<16 x s32>) = COPY $zmm0
113 G_STORE %0(<16 x s32>), %1(p0) :: (store 64 into %ir.p1, align 32)