1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=x86_64-linux-gnu -mcpu=skx -global-isel -verify-machineinstrs < %s -o - | FileCheck %s --check-prefix=SKX
3 ; RUN: llc -mtriple=x86_64-linux-gnu -mcpu=skx -regbankselect-greedy -global-isel -verify-machineinstrs < %s -o - | FileCheck %s --check-prefix=SKX
5 define <4 x i32> @test_load_v4i32_noalign(<4 x i32> * %p1) {
6 ; SKX-LABEL: test_load_v4i32_noalign:
8 ; SKX-NEXT: vmovups (%rdi), %xmm0
10 %r = load <4 x i32>, <4 x i32>* %p1, align 1
14 define <4 x i32> @test_load_v4i32_align(<4 x i32> * %p1) {
15 ; SKX-LABEL: test_load_v4i32_align:
17 ; SKX-NEXT: vmovaps (%rdi), %xmm0
19 %r = load <4 x i32>, <4 x i32>* %p1, align 16
23 define <8 x i32> @test_load_v8i32_noalign(<8 x i32> * %p1) {
24 ; SKX-LABEL: test_load_v8i32_noalign:
26 ; SKX-NEXT: vmovups (%rdi), %ymm0
28 %r = load <8 x i32>, <8 x i32>* %p1, align 1
32 define <8 x i32> @test_load_v8i32_align(<8 x i32> * %p1) {
33 ; SKX-LABEL: test_load_v8i32_align:
35 ; SKX-NEXT: vmovaps (%rdi), %ymm0
37 %r = load <8 x i32>, <8 x i32>* %p1, align 32
41 define <16 x i32> @test_load_v16i32_noalign(<16 x i32> * %p1) {
42 ; SKX-LABEL: test_load_v16i32_noalign:
44 ; SKX-NEXT: vmovups (%rdi), %zmm0
46 %r = load <16 x i32>, <16 x i32>* %p1, align 1
50 define <16 x i32> @test_load_v16i32_align(<16 x i32> * %p1) {
51 ; SKX-LABEL: test_load_v16i32_align:
53 ; SKX-NEXT: vmovups (%rdi), %zmm0
55 %r = load <16 x i32>, <16 x i32>* %p1, align 32
59 define void @test_store_v4i32_noalign(<4 x i32> %val, <4 x i32>* %p1) {
60 ; SKX-LABEL: test_store_v4i32_noalign:
62 ; SKX-NEXT: vmovups %xmm0, (%rdi)
64 store <4 x i32> %val, <4 x i32>* %p1, align 1
68 define void @test_store_v4i32_align(<4 x i32> %val, <4 x i32>* %p1) {
69 ; SKX-LABEL: test_store_v4i32_align:
71 ; SKX-NEXT: vmovaps %xmm0, (%rdi)
73 store <4 x i32> %val, <4 x i32>* %p1, align 16
77 define void @test_store_v8i32_noalign(<8 x i32> %val, <8 x i32>* %p1) {
78 ; SKX-LABEL: test_store_v8i32_noalign:
80 ; SKX-NEXT: vmovups %ymm0, (%rdi)
81 ; SKX-NEXT: vzeroupper
83 store <8 x i32> %val, <8 x i32>* %p1, align 1
87 define void @test_store_v8i32_align(<8 x i32> %val, <8 x i32>* %p1) {
88 ; SKX-LABEL: test_store_v8i32_align:
90 ; SKX-NEXT: vmovaps %ymm0, (%rdi)
91 ; SKX-NEXT: vzeroupper
93 store <8 x i32> %val, <8 x i32>* %p1, align 32
97 define void @test_store_v16i32_noalign(<16 x i32> %val, <16 x i32>* %p1) {
98 ; SKX-LABEL: test_store_v16i32_noalign:
100 ; SKX-NEXT: vmovups %zmm0, (%rdi)
101 ; SKX-NEXT: vzeroupper
103 store <16 x i32> %val, <16 x i32>* %p1, align 1
107 define void @test_store_v16i32_align(<16 x i32> %val, <16 x i32>* %p1) {
108 ; SKX-LABEL: test_store_v16i32_align:
110 ; SKX-NEXT: vmovaps %zmm0, (%rdi)
111 ; SKX-NEXT: vzeroupper
113 store <16 x i32> %val, <16 x i32>* %p1, align 64