; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefixes=CHECK,SSE,SSE2
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+sse4a | FileCheck %s --check-prefixes=CHECK,SSE,SSE4A
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+sse4.1 | FileCheck %s --check-prefixes=CHECK,SSE,SSE41
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx | FileCheck %s --check-prefixes=CHECK,AVX
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx2 | FileCheck %s --check-prefixes=CHECK,AVX
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512dq,+avx512vl | FileCheck %s --check-prefixes=CHECK,AVX512
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512bw,+avx512vl | FileCheck %s --check-prefixes=CHECK,AVX512
; Test codegen for under aligned nontemporal vector stores
; XMM versions.
define void @test_zero_v2f64_align1(ptr %dst) nounwind {
; CHECK-LABEL: test_zero_v2f64_align1:
; CHECK: # %bb.0:
; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: movntiq %rax, 8(%rdi)
; CHECK-NEXT: movntiq %rax, (%rdi)
; CHECK-NEXT: retq
store <2 x double> zeroinitializer, ptr %dst, align 1, !nontemporal !1
ret void
}
define void @test_zero_v4f32_align1(ptr %dst) nounwind {
; CHECK-LABEL: test_zero_v4f32_align1:
; CHECK: # %bb.0:
; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: movntiq %rax, 8(%rdi)
; CHECK-NEXT: movntiq %rax, (%rdi)
; CHECK-NEXT: retq
store <4 x float> zeroinitializer, ptr %dst, align 1, !nontemporal !1
ret void
}
define void @test_zero_v2i64_align1(ptr %dst) nounwind {
; CHECK-LABEL: test_zero_v2i64_align1:
; CHECK: # %bb.0:
; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: movntiq %rax, 8(%rdi)
; CHECK-NEXT: movntiq %rax, (%rdi)
; CHECK-NEXT: retq
store <2 x i64> zeroinitializer, ptr %dst, align 1, !nontemporal !1
ret void
}
define void @test_zero_v4i32_align1(ptr %dst) nounwind {
; CHECK-LABEL: test_zero_v4i32_align1:
; CHECK: # %bb.0:
; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: movntiq %rax, 8(%rdi)
; CHECK-NEXT: movntiq %rax, (%rdi)
; CHECK-NEXT: retq
store <4 x i32> zeroinitializer, ptr %dst, align 1, !nontemporal !1
ret void
}
define void @test_zero_v8i16_align1(ptr %dst) nounwind {
; CHECK-LABEL: test_zero_v8i16_align1:
; CHECK: # %bb.0:
; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: movntiq %rax, 8(%rdi)
; CHECK-NEXT: movntiq %rax, (%rdi)
; CHECK-NEXT: retq
store <8 x i16> zeroinitializer, ptr %dst, align 1, !nontemporal !1
ret void
}
define void @test_zero_v16i8_align1(ptr %dst) nounwind {
; CHECK-LABEL: test_zero_v16i8_align1:
; CHECK: # %bb.0:
; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: movntiq %rax, 8(%rdi)
; CHECK-NEXT: movntiq %rax, (%rdi)
; CHECK-NEXT: retq
store <16 x i8> zeroinitializer, ptr %dst, align 1, !nontemporal !1
ret void
}
; YMM versions.
define void @test_zero_v4f64_align1(ptr %dst) nounwind {
; CHECK-LABEL: test_zero_v4f64_align1:
; CHECK: # %bb.0:
; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: movntiq %rax, 8(%rdi)
; CHECK-NEXT: movntiq %rax, (%rdi)
; CHECK-NEXT: movntiq %rax, 24(%rdi)
; CHECK-NEXT: movntiq %rax, 16(%rdi)
; CHECK-NEXT: retq
store <4 x double> zeroinitializer, ptr %dst, align 1, !nontemporal !1
ret void
}
define void @test_zero_v8f32_align1(ptr %dst) nounwind {
; CHECK-LABEL: test_zero_v8f32_align1:
; CHECK: # %bb.0:
; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: movntiq %rax, 8(%rdi)
; CHECK-NEXT: movntiq %rax, (%rdi)
; CHECK-NEXT: movntiq %rax, 24(%rdi)
; CHECK-NEXT: movntiq %rax, 16(%rdi)
; CHECK-NEXT: retq
store <8 x float> zeroinitializer, ptr %dst, align 1, !nontemporal !1
ret void
}
define void @test_zero_v4i64_align1(ptr %dst) nounwind {
; CHECK-LABEL: test_zero_v4i64_align1:
; CHECK: # %bb.0:
; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: movntiq %rax, 8(%rdi)
; CHECK-NEXT: movntiq %rax, (%rdi)
; CHECK-NEXT: movntiq %rax, 24(%rdi)
; CHECK-NEXT: movntiq %rax, 16(%rdi)
; CHECK-NEXT: retq
store <4 x i64> zeroinitializer, ptr %dst, align 1, !nontemporal !1
ret void
}
define void @test_zero_v8i32_align1(ptr %dst) nounwind {
; CHECK-LABEL: test_zero_v8i32_align1:
; CHECK: # %bb.0:
; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: movntiq %rax, 8(%rdi)
; CHECK-NEXT: movntiq %rax, (%rdi)
; CHECK-NEXT: movntiq %rax, 24(%rdi)
; CHECK-NEXT: movntiq %rax, 16(%rdi)
; CHECK-NEXT: retq
store <8 x i32> zeroinitializer, ptr %dst, align 1, !nontemporal !1
ret void
}
define void @test_zero_v16i16_align1(ptr %dst) nounwind {
; CHECK-LABEL: test_zero_v16i16_align1:
; CHECK: # %bb.0:
; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: movntiq %rax, 8(%rdi)
; CHECK-NEXT: movntiq %rax, (%rdi)
; CHECK-NEXT: movntiq %rax, 24(%rdi)
; CHECK-NEXT: movntiq %rax, 16(%rdi)
; CHECK-NEXT: retq
store <16 x i16> zeroinitializer, ptr %dst, align 1, !nontemporal !1
ret void
}
define void @test_zero_v32i8_align1(ptr %dst) nounwind {
; CHECK-LABEL: test_zero_v32i8_align1:
; CHECK: # %bb.0:
; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: movntiq %rax, 8(%rdi)
; CHECK-NEXT: movntiq %rax, (%rdi)
; CHECK-NEXT: movntiq %rax, 24(%rdi)
; CHECK-NEXT: movntiq %rax, 16(%rdi)
; CHECK-NEXT: retq
store <32 x i8> zeroinitializer, ptr %dst, align 1, !nontemporal !1
ret void
}
define void @test_zero_v4f64_align16(ptr %dst) nounwind {
; SSE-LABEL: test_zero_v4f64_align16:
; SSE: # %bb.0:
; SSE-NEXT: xorps %xmm0, %xmm0
; SSE-NEXT: movntps %xmm0, 16(%rdi)
; SSE-NEXT: movntps %xmm0, (%rdi)
; SSE-NEXT: retq
;
; AVX-LABEL: test_zero_v4f64_align16:
; AVX: # %bb.0:
; AVX-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX-NEXT: vmovntps %xmm0, (%rdi)
; AVX-NEXT: retq
;
; AVX512-LABEL: test_zero_v4f64_align16:
; AVX512: # %bb.0:
; AVX512-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX512-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX512-NEXT: vmovntps %xmm0, (%rdi)
; AVX512-NEXT: retq
store <4 x double> zeroinitializer, ptr %dst, align 16, !nontemporal !1
ret void
}
define void @test_zero_v8f32_align16(ptr %dst) nounwind {
; SSE-LABEL: test_zero_v8f32_align16:
; SSE: # %bb.0:
; SSE-NEXT: xorps %xmm0, %xmm0
; SSE-NEXT: movntps %xmm0, 16(%rdi)
; SSE-NEXT: movntps %xmm0, (%rdi)
; SSE-NEXT: retq
;
; AVX-LABEL: test_zero_v8f32_align16:
; AVX: # %bb.0:
; AVX-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX-NEXT: vmovntps %xmm0, (%rdi)
; AVX-NEXT: retq
;
; AVX512-LABEL: test_zero_v8f32_align16:
; AVX512: # %bb.0:
; AVX512-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX512-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX512-NEXT: vmovntps %xmm0, (%rdi)
; AVX512-NEXT: retq
store <8 x float> zeroinitializer, ptr %dst, align 16, !nontemporal !1
ret void
}
define void @test_zero_v4i64_align16(ptr %dst) nounwind {
; SSE-LABEL: test_zero_v4i64_align16:
; SSE: # %bb.0:
; SSE-NEXT: xorps %xmm0, %xmm0
; SSE-NEXT: movntps %xmm0, 16(%rdi)
; SSE-NEXT: movntps %xmm0, (%rdi)
; SSE-NEXT: retq
;
; AVX-LABEL: test_zero_v4i64_align16:
; AVX: # %bb.0:
; AVX-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX-NEXT: vmovntps %xmm0, (%rdi)
; AVX-NEXT: retq
;
; AVX512-LABEL: test_zero_v4i64_align16:
; AVX512: # %bb.0:
; AVX512-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX512-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX512-NEXT: vmovntps %xmm0, (%rdi)
; AVX512-NEXT: retq
store <4 x i64> zeroinitializer, ptr %dst, align 16, !nontemporal !1
ret void
}
define void @test_zero_v8i32_align16(ptr %dst) nounwind {
; SSE-LABEL: test_zero_v8i32_align16:
; SSE: # %bb.0:
; SSE-NEXT: xorps %xmm0, %xmm0
; SSE-NEXT: movntps %xmm0, 16(%rdi)
; SSE-NEXT: movntps %xmm0, (%rdi)
; SSE-NEXT: retq
;
; AVX-LABEL: test_zero_v8i32_align16:
; AVX: # %bb.0:
; AVX-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX-NEXT: vmovntps %xmm0, (%rdi)
; AVX-NEXT: retq
;
; AVX512-LABEL: test_zero_v8i32_align16:
; AVX512: # %bb.0:
; AVX512-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX512-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX512-NEXT: vmovntps %xmm0, (%rdi)
; AVX512-NEXT: retq
store <8 x i32> zeroinitializer, ptr %dst, align 16, !nontemporal !1
ret void
}
define void @test_zero_v16i16_align16(ptr %dst) nounwind {
; SSE-LABEL: test_zero_v16i16_align16:
; SSE: # %bb.0:
; SSE-NEXT: xorps %xmm0, %xmm0
; SSE-NEXT: movntps %xmm0, 16(%rdi)
; SSE-NEXT: movntps %xmm0, (%rdi)
; SSE-NEXT: retq
;
; AVX-LABEL: test_zero_v16i16_align16:
; AVX: # %bb.0:
; AVX-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX-NEXT: vmovntps %xmm0, (%rdi)
; AVX-NEXT: retq
;
; AVX512-LABEL: test_zero_v16i16_align16:
; AVX512: # %bb.0:
; AVX512-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX512-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX512-NEXT: vmovntps %xmm0, (%rdi)
; AVX512-NEXT: retq
store <16 x i16> zeroinitializer, ptr %dst, align 16, !nontemporal !1
ret void
}
define void @test_zero_v32i8_align16(ptr %dst) nounwind {
; SSE-LABEL: test_zero_v32i8_align16:
; SSE: # %bb.0:
; SSE-NEXT: xorps %xmm0, %xmm0
; SSE-NEXT: movntps %xmm0, 16(%rdi)
; SSE-NEXT: movntps %xmm0, (%rdi)
; SSE-NEXT: retq
;
; AVX-LABEL: test_zero_v32i8_align16:
; AVX: # %bb.0:
; AVX-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX-NEXT: vmovntps %xmm0, (%rdi)
; AVX-NEXT: retq
;
; AVX512-LABEL: test_zero_v32i8_align16:
; AVX512: # %bb.0:
; AVX512-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX512-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX512-NEXT: vmovntps %xmm0, (%rdi)
; AVX512-NEXT: retq
store <32 x i8> zeroinitializer, ptr %dst, align 16, !nontemporal !1
ret void
}
; ZMM versions.
define void @test_zero_v8f64_align1(ptr %dst) nounwind {
; CHECK-LABEL: test_zero_v8f64_align1:
; CHECK: # %bb.0:
; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: movntiq %rax, 8(%rdi)
; CHECK-NEXT: movntiq %rax, (%rdi)
; CHECK-NEXT: movntiq %rax, 24(%rdi)
; CHECK-NEXT: movntiq %rax, 16(%rdi)
; CHECK-NEXT: movntiq %rax, 40(%rdi)
; CHECK-NEXT: movntiq %rax, 32(%rdi)
; CHECK-NEXT: movntiq %rax, 56(%rdi)
; CHECK-NEXT: movntiq %rax, 48(%rdi)
; CHECK-NEXT: retq
store <8 x double> zeroinitializer, ptr %dst, align 1, !nontemporal !1
ret void
}
define void @test_zero_v16f32_align1(ptr %dst) nounwind {
; CHECK-LABEL: test_zero_v16f32_align1:
; CHECK: # %bb.0:
; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: movntiq %rax, 8(%rdi)
; CHECK-NEXT: movntiq %rax, (%rdi)
; CHECK-NEXT: movntiq %rax, 24(%rdi)
; CHECK-NEXT: movntiq %rax, 16(%rdi)
; CHECK-NEXT: movntiq %rax, 40(%rdi)
; CHECK-NEXT: movntiq %rax, 32(%rdi)
; CHECK-NEXT: movntiq %rax, 56(%rdi)
; CHECK-NEXT: movntiq %rax, 48(%rdi)
; CHECK-NEXT: retq
store <16 x float> zeroinitializer, ptr %dst, align 1, !nontemporal !1
ret void
}
define void @test_zero_v8i64_align1(ptr %dst) nounwind {
; CHECK-LABEL: test_zero_v8i64_align1:
; CHECK: # %bb.0:
; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: movntiq %rax, 8(%rdi)
; CHECK-NEXT: movntiq %rax, (%rdi)
; CHECK-NEXT: movntiq %rax, 24(%rdi)
; CHECK-NEXT: movntiq %rax, 16(%rdi)
; CHECK-NEXT: movntiq %rax, 40(%rdi)
; CHECK-NEXT: movntiq %rax, 32(%rdi)
; CHECK-NEXT: movntiq %rax, 56(%rdi)
; CHECK-NEXT: movntiq %rax, 48(%rdi)
; CHECK-NEXT: retq
store <8 x i64> zeroinitializer, ptr %dst, align 1, !nontemporal !1
ret void
}
define void @test_zero_v16i32_align1(ptr %dst) nounwind {
; CHECK-LABEL: test_zero_v16i32_align1:
; CHECK: # %bb.0:
; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: movntiq %rax, 8(%rdi)
; CHECK-NEXT: movntiq %rax, (%rdi)
; CHECK-NEXT: movntiq %rax, 24(%rdi)
; CHECK-NEXT: movntiq %rax, 16(%rdi)
; CHECK-NEXT: movntiq %rax, 40(%rdi)
; CHECK-NEXT: movntiq %rax, 32(%rdi)
; CHECK-NEXT: movntiq %rax, 56(%rdi)
; CHECK-NEXT: movntiq %rax, 48(%rdi)
; CHECK-NEXT: retq
store <16 x i32> zeroinitializer, ptr %dst, align 1, !nontemporal !1
ret void
}
define void @test_zero_v32i16_align1(ptr %dst) nounwind {
; CHECK-LABEL: test_zero_v32i16_align1:
; CHECK: # %bb.0:
; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: movntiq %rax, 8(%rdi)
; CHECK-NEXT: movntiq %rax, (%rdi)
; CHECK-NEXT: movntiq %rax, 24(%rdi)
; CHECK-NEXT: movntiq %rax, 16(%rdi)
; CHECK-NEXT: movntiq %rax, 40(%rdi)
; CHECK-NEXT: movntiq %rax, 32(%rdi)
; CHECK-NEXT: movntiq %rax, 56(%rdi)
; CHECK-NEXT: movntiq %rax, 48(%rdi)
; CHECK-NEXT: retq
store <32 x i16> zeroinitializer, ptr %dst, align 1, !nontemporal !1
ret void
}
define void @test_zero_v64i8_align1(ptr %dst) nounwind {
; CHECK-LABEL: test_zero_v64i8_align1:
; CHECK: # %bb.0:
; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: movntiq %rax, 8(%rdi)
; CHECK-NEXT: movntiq %rax, (%rdi)
; CHECK-NEXT: movntiq %rax, 24(%rdi)
; CHECK-NEXT: movntiq %rax, 16(%rdi)
; CHECK-NEXT: movntiq %rax, 40(%rdi)
; CHECK-NEXT: movntiq %rax, 32(%rdi)
; CHECK-NEXT: movntiq %rax, 56(%rdi)
; CHECK-NEXT: movntiq %rax, 48(%rdi)
; CHECK-NEXT: retq
store <64 x i8> zeroinitializer, ptr %dst, align 1, !nontemporal !1
ret void
}
define void @test_zero_v8f64_align16(ptr %dst) nounwind {
; SSE-LABEL: test_zero_v8f64_align16:
; SSE: # %bb.0:
; SSE-NEXT: xorps %xmm0, %xmm0
; SSE-NEXT: movntps %xmm0, 16(%rdi)
; SSE-NEXT: movntps %xmm0, (%rdi)
; SSE-NEXT: movntps %xmm0, 48(%rdi)
; SSE-NEXT: movntps %xmm0, 32(%rdi)
; SSE-NEXT: retq
;
; AVX-LABEL: test_zero_v8f64_align16:
; AVX: # %bb.0:
; AVX-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX-NEXT: vmovntps %xmm0, (%rdi)
; AVX-NEXT: vmovntps %xmm0, 48(%rdi)
; AVX-NEXT: vmovntps %xmm0, 32(%rdi)
; AVX-NEXT: retq
;
; AVX512-LABEL: test_zero_v8f64_align16:
; AVX512: # %bb.0:
; AVX512-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX512-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX512-NEXT: vmovntps %xmm0, (%rdi)
; AVX512-NEXT: vmovntps %xmm0, 48(%rdi)
; AVX512-NEXT: vmovntps %xmm0, 32(%rdi)
; AVX512-NEXT: retq
store <8 x double> zeroinitializer, ptr %dst, align 16, !nontemporal !1
ret void
}
define void @test_zero_v16f32_align16(ptr %dst) nounwind {
; SSE-LABEL: test_zero_v16f32_align16:
; SSE: # %bb.0:
; SSE-NEXT: xorps %xmm0, %xmm0
; SSE-NEXT: movntps %xmm0, 16(%rdi)
; SSE-NEXT: movntps %xmm0, (%rdi)
; SSE-NEXT: movntps %xmm0, 48(%rdi)
; SSE-NEXT: movntps %xmm0, 32(%rdi)
; SSE-NEXT: retq
;
; AVX-LABEL: test_zero_v16f32_align16:
; AVX: # %bb.0:
; AVX-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX-NEXT: vmovntps %xmm0, (%rdi)
; AVX-NEXT: vmovntps %xmm0, 48(%rdi)
; AVX-NEXT: vmovntps %xmm0, 32(%rdi)
; AVX-NEXT: retq
;
; AVX512-LABEL: test_zero_v16f32_align16:
; AVX512: # %bb.0:
; AVX512-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX512-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX512-NEXT: vmovntps %xmm0, (%rdi)
; AVX512-NEXT: vmovntps %xmm0, 48(%rdi)
; AVX512-NEXT: vmovntps %xmm0, 32(%rdi)
; AVX512-NEXT: retq
store <16 x float> zeroinitializer, ptr %dst, align 16, !nontemporal !1
ret void
}
define void @test_zero_v8i64_align16(ptr %dst) nounwind {
; SSE-LABEL: test_zero_v8i64_align16:
; SSE: # %bb.0:
; SSE-NEXT: xorps %xmm0, %xmm0
; SSE-NEXT: movntps %xmm0, 16(%rdi)
; SSE-NEXT: movntps %xmm0, (%rdi)
; SSE-NEXT: movntps %xmm0, 48(%rdi)
; SSE-NEXT: movntps %xmm0, 32(%rdi)
; SSE-NEXT: retq
;
; AVX-LABEL: test_zero_v8i64_align16:
; AVX: # %bb.0:
; AVX-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX-NEXT: vmovntps %xmm0, (%rdi)
; AVX-NEXT: vmovntps %xmm0, 48(%rdi)
; AVX-NEXT: vmovntps %xmm0, 32(%rdi)
; AVX-NEXT: retq
;
; AVX512-LABEL: test_zero_v8i64_align16:
; AVX512: # %bb.0:
; AVX512-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX512-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX512-NEXT: vmovntps %xmm0, (%rdi)
; AVX512-NEXT: vmovntps %xmm0, 48(%rdi)
; AVX512-NEXT: vmovntps %xmm0, 32(%rdi)
; AVX512-NEXT: retq
store <8 x i64> zeroinitializer, ptr %dst, align 16, !nontemporal !1
ret void
}
define void @test_zero_v16i32_align16(ptr %dst) nounwind {
; SSE-LABEL: test_zero_v16i32_align16:
; SSE: # %bb.0:
; SSE-NEXT: xorps %xmm0, %xmm0
; SSE-NEXT: movntps %xmm0, 16(%rdi)
; SSE-NEXT: movntps %xmm0, (%rdi)
; SSE-NEXT: movntps %xmm0, 48(%rdi)
; SSE-NEXT: movntps %xmm0, 32(%rdi)
; SSE-NEXT: retq
;
; AVX-LABEL: test_zero_v16i32_align16:
; AVX: # %bb.0:
; AVX-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX-NEXT: vmovntps %xmm0, (%rdi)
; AVX-NEXT: vmovntps %xmm0, 48(%rdi)
; AVX-NEXT: vmovntps %xmm0, 32(%rdi)
; AVX-NEXT: retq
;
; AVX512-LABEL: test_zero_v16i32_align16:
; AVX512: # %bb.0:
; AVX512-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX512-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX512-NEXT: vmovntps %xmm0, (%rdi)
; AVX512-NEXT: vmovntps %xmm0, 48(%rdi)
; AVX512-NEXT: vmovntps %xmm0, 32(%rdi)
; AVX512-NEXT: retq
store <16 x i32> zeroinitializer, ptr %dst, align 16, !nontemporal !1
ret void
}
define void @test_zero_v32i16_align16(ptr %dst) nounwind {
; SSE-LABEL: test_zero_v32i16_align16:
; SSE: # %bb.0:
; SSE-NEXT: xorps %xmm0, %xmm0
; SSE-NEXT: movntps %xmm0, 16(%rdi)
; SSE-NEXT: movntps %xmm0, (%rdi)
; SSE-NEXT: movntps %xmm0, 48(%rdi)
; SSE-NEXT: movntps %xmm0, 32(%rdi)
; SSE-NEXT: retq
;
; AVX-LABEL: test_zero_v32i16_align16:
; AVX: # %bb.0:
; AVX-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX-NEXT: vmovntps %xmm0, (%rdi)
; AVX-NEXT: vmovntps %xmm0, 48(%rdi)
; AVX-NEXT: vmovntps %xmm0, 32(%rdi)
; AVX-NEXT: retq
;
; AVX512-LABEL: test_zero_v32i16_align16:
; AVX512: # %bb.0:
; AVX512-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX512-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX512-NEXT: vmovntps %xmm0, (%rdi)
; AVX512-NEXT: vmovntps %xmm0, 48(%rdi)
; AVX512-NEXT: vmovntps %xmm0, 32(%rdi)
; AVX512-NEXT: retq
store <32 x i16> zeroinitializer, ptr %dst, align 16, !nontemporal !1
ret void
}
define void @test_zero_v64i8_align16(ptr %dst) nounwind {
; SSE-LABEL: test_zero_v64i8_align16:
; SSE: # %bb.0:
; SSE-NEXT: xorps %xmm0, %xmm0
; SSE-NEXT: movntps %xmm0, 16(%rdi)
; SSE-NEXT: movntps %xmm0, (%rdi)
; SSE-NEXT: movntps %xmm0, 48(%rdi)
; SSE-NEXT: movntps %xmm0, 32(%rdi)
; SSE-NEXT: retq
;
; AVX-LABEL: test_zero_v64i8_align16:
; AVX: # %bb.0:
; AVX-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX-NEXT: vmovntps %xmm0, (%rdi)
; AVX-NEXT: vmovntps %xmm0, 48(%rdi)
; AVX-NEXT: vmovntps %xmm0, 32(%rdi)
; AVX-NEXT: retq
;
; AVX512-LABEL: test_zero_v64i8_align16:
; AVX512: # %bb.0:
; AVX512-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX512-NEXT: vmovntps %xmm0, 16(%rdi)
; AVX512-NEXT: vmovntps %xmm0, (%rdi)
; AVX512-NEXT: vmovntps %xmm0, 48(%rdi)
; AVX512-NEXT: vmovntps %xmm0, 32(%rdi)
; AVX512-NEXT: retq
store <64 x i8> zeroinitializer, ptr %dst, align 16, !nontemporal !1
ret void
}
define void @test_zero_v8f64_align32(ptr %dst) nounwind {
; SSE-LABEL: test_zero_v8f64_align32:
; SSE: # %bb.0:
; SSE-NEXT: xorps %xmm0, %xmm0
; SSE-NEXT: movntps %xmm0, 48(%rdi)
; SSE-NEXT: movntps %xmm0, 32(%rdi)
; SSE-NEXT: movntps %xmm0, 16(%rdi)
; SSE-NEXT: movntps %xmm0, (%rdi)
; SSE-NEXT: retq
;
; AVX-LABEL: test_zero_v8f64_align32:
; AVX: # %bb.0:
; AVX-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX-NEXT: vmovntps %ymm0, 32(%rdi)
; AVX-NEXT: vmovntps %ymm0, (%rdi)
; AVX-NEXT: vzeroupper
; AVX-NEXT: retq
;
; AVX512-LABEL: test_zero_v8f64_align32:
; AVX512: # %bb.0:
; AVX512-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX512-NEXT: vmovntps %ymm0, 32(%rdi)
; AVX512-NEXT: vmovntps %ymm0, (%rdi)
; AVX512-NEXT: vzeroupper
; AVX512-NEXT: retq
store <8 x double> zeroinitializer, ptr %dst, align 32, !nontemporal !1
ret void
}
define void @test_zero_v16f32_align32(ptr %dst) nounwind {
; SSE-LABEL: test_zero_v16f32_align32:
; SSE: # %bb.0:
; SSE-NEXT: xorps %xmm0, %xmm0
; SSE-NEXT: movntps %xmm0, 48(%rdi)
; SSE-NEXT: movntps %xmm0, 32(%rdi)
; SSE-NEXT: movntps %xmm0, 16(%rdi)
; SSE-NEXT: movntps %xmm0, (%rdi)
; SSE-NEXT: retq
;
; AVX-LABEL: test_zero_v16f32_align32:
; AVX: # %bb.0:
; AVX-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX-NEXT: vmovntps %ymm0, 32(%rdi)
; AVX-NEXT: vmovntps %ymm0, (%rdi)
; AVX-NEXT: vzeroupper
; AVX-NEXT: retq
;
; AVX512-LABEL: test_zero_v16f32_align32:
; AVX512: # %bb.0:
; AVX512-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX512-NEXT: vmovntps %ymm0, 32(%rdi)
; AVX512-NEXT: vmovntps %ymm0, (%rdi)
; AVX512-NEXT: vzeroupper
; AVX512-NEXT: retq
store <16 x float> zeroinitializer, ptr %dst, align 32, !nontemporal !1
ret void
}
define void @test_zero_v8i64_align32(ptr %dst) nounwind {
; SSE-LABEL: test_zero_v8i64_align32:
; SSE: # %bb.0:
; SSE-NEXT: xorps %xmm0, %xmm0
; SSE-NEXT: movntps %xmm0, 48(%rdi)
; SSE-NEXT: movntps %xmm0, 32(%rdi)
; SSE-NEXT: movntps %xmm0, 16(%rdi)
; SSE-NEXT: movntps %xmm0, (%rdi)
; SSE-NEXT: retq
;
; AVX-LABEL: test_zero_v8i64_align32:
; AVX: # %bb.0:
; AVX-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX-NEXT: vmovntps %ymm0, 32(%rdi)
; AVX-NEXT: vmovntps %ymm0, (%rdi)
; AVX-NEXT: vzeroupper
; AVX-NEXT: retq
;
; AVX512-LABEL: test_zero_v8i64_align32:
; AVX512: # %bb.0:
; AVX512-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX512-NEXT: vmovntps %ymm0, 32(%rdi)
; AVX512-NEXT: vmovntps %ymm0, (%rdi)
; AVX512-NEXT: vzeroupper
; AVX512-NEXT: retq
store <8 x i64> zeroinitializer, ptr %dst, align 32, !nontemporal !1
ret void
}
define void @test_zero_v16i32_align32(ptr %dst) nounwind {
; SSE-LABEL: test_zero_v16i32_align32:
; SSE: # %bb.0:
; SSE-NEXT: xorps %xmm0, %xmm0
; SSE-NEXT: movntps %xmm0, 48(%rdi)
; SSE-NEXT: movntps %xmm0, 32(%rdi)
; SSE-NEXT: movntps %xmm0, 16(%rdi)
; SSE-NEXT: movntps %xmm0, (%rdi)
; SSE-NEXT: retq
;
; AVX-LABEL: test_zero_v16i32_align32:
; AVX: # %bb.0:
; AVX-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX-NEXT: vmovntps %ymm0, 32(%rdi)
; AVX-NEXT: vmovntps %ymm0, (%rdi)
; AVX-NEXT: vzeroupper
; AVX-NEXT: retq
;
; AVX512-LABEL: test_zero_v16i32_align32:
; AVX512: # %bb.0:
; AVX512-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX512-NEXT: vmovntps %ymm0, 32(%rdi)
; AVX512-NEXT: vmovntps %ymm0, (%rdi)
; AVX512-NEXT: vzeroupper
; AVX512-NEXT: retq
store <16 x i32> zeroinitializer, ptr %dst, align 32, !nontemporal !1
ret void
}
define void @test_zero_v32i16_align32(ptr %dst) nounwind {
; SSE-LABEL: test_zero_v32i16_align32:
; SSE: # %bb.0:
; SSE-NEXT: xorps %xmm0, %xmm0
; SSE-NEXT: movntps %xmm0, 48(%rdi)
; SSE-NEXT: movntps %xmm0, 32(%rdi)
; SSE-NEXT: movntps %xmm0, 16(%rdi)
; SSE-NEXT: movntps %xmm0, (%rdi)
; SSE-NEXT: retq
;
; AVX-LABEL: test_zero_v32i16_align32:
; AVX: # %bb.0:
; AVX-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX-NEXT: vmovntps %ymm0, 32(%rdi)
; AVX-NEXT: vmovntps %ymm0, (%rdi)
; AVX-NEXT: vzeroupper
; AVX-NEXT: retq
;
; AVX512-LABEL: test_zero_v32i16_align32:
; AVX512: # %bb.0:
; AVX512-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX512-NEXT: vmovntps %ymm0, 32(%rdi)
; AVX512-NEXT: vmovntps %ymm0, (%rdi)
; AVX512-NEXT: vzeroupper
; AVX512-NEXT: retq
store <32 x i16> zeroinitializer, ptr %dst, align 32, !nontemporal !1
ret void
}
define void @test_zero_v64i8_align32(ptr %dst) nounwind {
; SSE-LABEL: test_zero_v64i8_align32:
; SSE: # %bb.0:
; SSE-NEXT: xorps %xmm0, %xmm0
; SSE-NEXT: movntps %xmm0, 48(%rdi)
; SSE-NEXT: movntps %xmm0, 32(%rdi)
; SSE-NEXT: movntps %xmm0, 16(%rdi)
; SSE-NEXT: movntps %xmm0, (%rdi)
; SSE-NEXT: retq
;
; AVX-LABEL: test_zero_v64i8_align32:
; AVX: # %bb.0:
; AVX-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX-NEXT: vmovntps %ymm0, 32(%rdi)
; AVX-NEXT: vmovntps %ymm0, (%rdi)
; AVX-NEXT: vzeroupper
; AVX-NEXT: retq
;
; AVX512-LABEL: test_zero_v64i8_align32:
; AVX512: # %bb.0:
; AVX512-NEXT: vxorps %xmm0, %xmm0, %xmm0
; AVX512-NEXT: vmovntps %ymm0, 32(%rdi)
; AVX512-NEXT: vmovntps %ymm0, (%rdi)
; AVX512-NEXT: vzeroupper
; AVX512-NEXT: retq
store <64 x i8> zeroinitializer, ptr %dst, align 32, !nontemporal !1
ret void
}
!1 = !{i32 1}
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
; SSE2: {{.*}}
; SSE41: {{.*}}
; SSE4A: {{.*}}