2015-11-24 05:33:58 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
2017-04-06 18:32:30 +08:00
|
|
|
; RUN: llc < %s -verify-machineinstrs -mtriple=x86_64-unknown-unknown -mattr=+mmx,+sse2 -fast-isel -O0 | FileCheck %s --check-prefix=ALL --check-prefix=SSE --check-prefix=SSE2
|
|
|
|
; RUN: llc < %s -verify-machineinstrs -mtriple=x86_64-unknown-unknown -mattr=+mmx,+sse4a -fast-isel -O0 | FileCheck %s --check-prefix=ALL --check-prefix=SSE --check-prefix=SSE4A
|
|
|
|
; RUN: llc < %s -verify-machineinstrs -mtriple=x86_64-unknown-unknown -mattr=+mmx,+sse4.1 -fast-isel -O0 | FileCheck %s --check-prefix=ALL --check-prefix=SSE --check-prefix=SSE41
|
|
|
|
; RUN: llc < %s -verify-machineinstrs -mtriple=x86_64-unknown-unknown -mattr=+mmx,+avx -fast-isel -O0 | FileCheck %s --check-prefix=ALL --check-prefix=AVX --check-prefix=AVX1
|
|
|
|
; RUN: llc < %s -verify-machineinstrs -mtriple=x86_64-unknown-unknown -mattr=+mmx,+avx2 -fast-isel -O0 | FileCheck %s --check-prefix=ALL --check-prefix=AVX --check-prefix=AVX2
|
2017-10-28 04:13:06 +08:00
|
|
|
; RUN: llc < %s -verify-machineinstrs -mtriple=x86_64-unknown-unknown -mattr=+mmx,+avx512vl -fast-isel -O0 | FileCheck %s --check-prefix=ALL --check-prefix=AVX512 --check-prefix=AVX512VL
|
2017-04-06 18:32:30 +08:00
|
|
|
; RUN: llc < %s -verify-machineinstrs -mtriple=x86_64-unknown-unknown -mattr=+mmx,+avx512f -fast-isel -O0 | FileCheck %s --check-prefix=ALL --check-prefix=AVX512 --check-prefix=AVX512F
|
|
|
|
; RUN: llc < %s -verify-machineinstrs -mtriple=x86_64-unknown-unknown -mattr=+mmx,+avx512bw -fast-isel -O0 | FileCheck %s --check-prefix=ALL --check-prefix=AVX512 --check-prefix=AVX512BW
|
2016-06-01 21:20:25 +08:00
|
|
|
|
|
|
|
;
|
|
|
|
; Scalar Stores
|
|
|
|
;
|
2015-10-14 18:03:13 +08:00
|
|
|
|
|
|
|
define void @test_nti32(i32* nocapture %ptr, i32 %X) {
|
|
|
|
; ALL-LABEL: test_nti32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; ALL: # %bb.0: # %entry
|
2015-10-14 18:03:13 +08:00
|
|
|
; ALL-NEXT: movntil %esi, (%rdi)
|
|
|
|
; ALL-NEXT: retq
|
|
|
|
entry:
|
|
|
|
store i32 %X, i32* %ptr, align 4, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_nti64(i64* nocapture %ptr, i64 %X) {
|
|
|
|
; ALL-LABEL: test_nti64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; ALL: # %bb.0: # %entry
|
2015-10-14 18:03:13 +08:00
|
|
|
; ALL-NEXT: movntiq %rsi, (%rdi)
|
|
|
|
; ALL-NEXT: retq
|
|
|
|
entry:
|
|
|
|
store i64 %X, i64* %ptr, align 8, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2015-10-17 21:04:42 +08:00
|
|
|
define void @test_ntfloat(float* nocapture %ptr, float %X) {
|
|
|
|
; SSE2-LABEL: test_ntfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0: # %entry
|
2015-10-17 21:04:42 +08:00
|
|
|
; SSE2-NEXT: movss %xmm0, (%rdi)
|
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE4A-LABEL: test_ntfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE4A: # %bb.0: # %entry
|
2015-10-17 21:04:42 +08:00
|
|
|
; SSE4A-NEXT: movntss %xmm0, (%rdi)
|
|
|
|
; SSE4A-NEXT: retq
|
|
|
|
;
|
2016-06-03 02:01:21 +08:00
|
|
|
; SSE41-LABEL: test_ntfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0: # %entry
|
2016-06-03 02:01:21 +08:00
|
|
|
; SSE41-NEXT: movss %xmm0, (%rdi)
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
2015-10-17 21:04:42 +08:00
|
|
|
; AVX-LABEL: test_ntfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2015-10-17 21:04:42 +08:00
|
|
|
; AVX-NEXT: vmovss %xmm0, (%rdi)
|
|
|
|
; AVX-NEXT: retq
|
2016-06-01 21:20:25 +08:00
|
|
|
;
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-LABEL: test_ntfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: vmovss %xmm0, (%rdi)
|
|
|
|
; AVX512-NEXT: retq
|
2015-10-17 21:04:42 +08:00
|
|
|
entry:
|
|
|
|
store float %X, float* %ptr, align 4, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_ntdouble(double* nocapture %ptr, double %X) {
|
|
|
|
; SSE2-LABEL: test_ntdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0: # %entry
|
2015-10-17 21:04:42 +08:00
|
|
|
; SSE2-NEXT: movsd %xmm0, (%rdi)
|
2015-10-14 18:03:13 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2015-10-17 21:04:42 +08:00
|
|
|
; SSE4A-LABEL: test_ntdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE4A: # %bb.0: # %entry
|
2015-10-17 21:04:42 +08:00
|
|
|
; SSE4A-NEXT: movntsd %xmm0, (%rdi)
|
|
|
|
; SSE4A-NEXT: retq
|
|
|
|
;
|
2016-06-03 02:01:21 +08:00
|
|
|
; SSE41-LABEL: test_ntdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0: # %entry
|
2016-06-03 02:01:21 +08:00
|
|
|
; SSE41-NEXT: movsd %xmm0, (%rdi)
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
2015-10-17 21:04:42 +08:00
|
|
|
; AVX-LABEL: test_ntdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2015-10-17 21:04:42 +08:00
|
|
|
; AVX-NEXT: vmovsd %xmm0, (%rdi)
|
|
|
|
; AVX-NEXT: retq
|
2016-06-01 21:20:25 +08:00
|
|
|
;
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-LABEL: test_ntdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: vmovsd %xmm0, (%rdi)
|
|
|
|
; AVX512-NEXT: retq
|
2015-10-17 21:04:42 +08:00
|
|
|
entry:
|
|
|
|
store double %X, double* %ptr, align 8, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2017-04-06 18:32:30 +08:00
|
|
|
;
|
|
|
|
; MMX Store
|
|
|
|
;
|
|
|
|
|
|
|
|
define void @test_mmx(x86_mmx* nocapture %a0, x86_mmx* nocapture %a1) {
|
|
|
|
; ALL-LABEL: test_mmx:
|
2017-12-05 01:18:51 +08:00
|
|
|
; ALL: # %bb.0: # %entry
|
2017-04-06 18:32:30 +08:00
|
|
|
; ALL-NEXT: movq (%rdi), %mm0
|
|
|
|
; ALL-NEXT: psrlq $3, %mm0
|
2017-04-11 00:58:07 +08:00
|
|
|
; ALL-NEXT: movntq %mm0, (%rsi)
|
2017-04-06 18:32:30 +08:00
|
|
|
; ALL-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = load x86_mmx, x86_mmx* %a0
|
|
|
|
%1 = call x86_mmx @llvm.x86.mmx.psrli.q(x86_mmx %0, i32 3)
|
|
|
|
store x86_mmx %1, x86_mmx* %a1, align 8, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
declare x86_mmx @llvm.x86.mmx.psrli.q(x86_mmx, i32) nounwind readnone
|
|
|
|
|
2016-06-01 21:20:25 +08:00
|
|
|
;
|
|
|
|
; 128-bit Vector Stores
|
|
|
|
;
|
|
|
|
|
2015-10-17 21:04:42 +08:00
|
|
|
define void @test_nt4xfloat(<4 x float>* nocapture %ptr, <4 x float> %X) {
|
|
|
|
; SSE-LABEL: test_nt4xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2015-10-17 21:04:42 +08:00
|
|
|
; SSE-NEXT: movntps %xmm0, (%rdi)
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
2015-10-14 18:03:13 +08:00
|
|
|
; AVX-LABEL: test_nt4xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2015-10-14 18:03:13 +08:00
|
|
|
; AVX-NEXT: vmovntps %xmm0, (%rdi)
|
|
|
|
; AVX-NEXT: retq
|
2016-06-01 21:20:25 +08:00
|
|
|
;
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-LABEL: test_nt4xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: vmovntps %xmm0, (%rdi)
|
|
|
|
; AVX512-NEXT: retq
|
2015-10-14 18:03:13 +08:00
|
|
|
entry:
|
|
|
|
store <4 x float> %X, <4 x float>* %ptr, align 16, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_nt2xdouble(<2 x double>* nocapture %ptr, <2 x double> %X) {
|
2015-10-17 21:04:42 +08:00
|
|
|
; SSE-LABEL: test_nt2xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2015-10-17 21:04:42 +08:00
|
|
|
; SSE-NEXT: movntpd %xmm0, (%rdi)
|
|
|
|
; SSE-NEXT: retq
|
2015-10-14 18:03:13 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: test_nt2xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2015-10-14 18:03:13 +08:00
|
|
|
; AVX-NEXT: vmovntpd %xmm0, (%rdi)
|
|
|
|
; AVX-NEXT: retq
|
2016-06-01 21:20:25 +08:00
|
|
|
;
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-LABEL: test_nt2xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: vmovntpd %xmm0, (%rdi)
|
|
|
|
; AVX512-NEXT: retq
|
2015-10-14 18:03:13 +08:00
|
|
|
entry:
|
|
|
|
store <2 x double> %X, <2 x double>* %ptr, align 16, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2016-06-01 21:05:00 +08:00
|
|
|
define void @test_nt16xi8(<16 x i8>* nocapture %ptr, <16 x i8> %X) {
|
|
|
|
; SSE-LABEL: test_nt16xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2016-06-01 21:05:00 +08:00
|
|
|
; SSE-NEXT: movntdq %xmm0, (%rdi)
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: test_nt16xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2016-06-01 21:05:00 +08:00
|
|
|
; AVX-NEXT: vmovntdq %xmm0, (%rdi)
|
|
|
|
; AVX-NEXT: retq
|
2016-06-01 21:20:25 +08:00
|
|
|
;
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-LABEL: test_nt16xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: vmovntdq %xmm0, (%rdi)
|
|
|
|
; AVX512-NEXT: retq
|
2016-06-01 21:05:00 +08:00
|
|
|
entry:
|
|
|
|
store <16 x i8> %X, <16 x i8>* %ptr, align 16, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_nt8xi16(<8 x i16>* nocapture %ptr, <8 x i16> %X) {
|
|
|
|
; SSE-LABEL: test_nt8xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2016-06-01 21:05:00 +08:00
|
|
|
; SSE-NEXT: movntdq %xmm0, (%rdi)
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: test_nt8xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2016-06-01 21:05:00 +08:00
|
|
|
; AVX-NEXT: vmovntdq %xmm0, (%rdi)
|
|
|
|
; AVX-NEXT: retq
|
2016-06-01 21:20:25 +08:00
|
|
|
;
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-LABEL: test_nt8xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: vmovntdq %xmm0, (%rdi)
|
|
|
|
; AVX512-NEXT: retq
|
2016-06-01 21:05:00 +08:00
|
|
|
entry:
|
|
|
|
store <8 x i16> %X, <8 x i16>* %ptr, align 16, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_nt4xi32(<4 x i32>* nocapture %ptr, <4 x i32> %X) {
|
|
|
|
; SSE-LABEL: test_nt4xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2016-06-01 21:05:00 +08:00
|
|
|
; SSE-NEXT: movntdq %xmm0, (%rdi)
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: test_nt4xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2016-06-01 21:05:00 +08:00
|
|
|
; AVX-NEXT: vmovntdq %xmm0, (%rdi)
|
|
|
|
; AVX-NEXT: retq
|
2016-06-01 21:20:25 +08:00
|
|
|
;
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-LABEL: test_nt4xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: vmovntdq %xmm0, (%rdi)
|
|
|
|
; AVX512-NEXT: retq
|
2016-06-01 21:05:00 +08:00
|
|
|
entry:
|
|
|
|
store <4 x i32> %X, <4 x i32>* %ptr, align 16, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2015-10-14 18:03:13 +08:00
|
|
|
define void @test_nt2xi64(<2 x i64>* nocapture %ptr, <2 x i64> %X) {
|
2015-10-17 21:04:42 +08:00
|
|
|
; SSE-LABEL: test_nt2xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2015-10-17 21:04:42 +08:00
|
|
|
; SSE-NEXT: movntdq %xmm0, (%rdi)
|
|
|
|
; SSE-NEXT: retq
|
2015-10-14 18:03:13 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: test_nt2xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2015-10-14 18:03:13 +08:00
|
|
|
; AVX-NEXT: vmovntdq %xmm0, (%rdi)
|
|
|
|
; AVX-NEXT: retq
|
2016-06-01 21:20:25 +08:00
|
|
|
;
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-LABEL: test_nt2xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: vmovntdq %xmm0, (%rdi)
|
|
|
|
; AVX512-NEXT: retq
|
2015-10-14 18:03:13 +08:00
|
|
|
entry:
|
|
|
|
store <2 x i64> %X, <2 x i64>* %ptr, align 16, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2016-06-02 21:51:50 +08:00
|
|
|
;
|
|
|
|
; 128-bit Vector Loads
|
|
|
|
;
|
|
|
|
|
|
|
|
define <4 x float> @test_load_nt4xfloat(<4 x float>* nocapture %ptr) {
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE2-LABEL: test_load_nt4xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE2-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE4A-LABEL: test_load_nt4xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE4A: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE4A-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE4A-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: test_load_nt4xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE41-NEXT: movntdqa (%rdi), %xmm0
|
|
|
|
; SSE41-NEXT: retq
|
2016-06-02 21:51:50 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: test_load_nt4xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX-NEXT: vmovntdqa (%rdi), %xmm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; AVX-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512-LABEL: test_load_nt4xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX512-NEXT: vmovntdqa (%rdi), %xmm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; AVX512-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = load <4 x float>, <4 x float>* %ptr, align 16, !nontemporal !1
|
|
|
|
ret <4 x float> %0
|
|
|
|
}
|
|
|
|
|
|
|
|
define <2 x double> @test_load_nt2xdouble(<2 x double>* nocapture %ptr) {
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE2-LABEL: test_load_nt2xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE2-NEXT: movapd (%rdi), %xmm0
|
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE4A-LABEL: test_load_nt2xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE4A: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE4A-NEXT: movapd (%rdi), %xmm0
|
|
|
|
; SSE4A-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: test_load_nt2xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE41-NEXT: movntdqa (%rdi), %xmm0
|
|
|
|
; SSE41-NEXT: retq
|
2016-06-02 21:51:50 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: test_load_nt2xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX-NEXT: vmovntdqa (%rdi), %xmm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; AVX-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512-LABEL: test_load_nt2xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX512-NEXT: vmovntdqa (%rdi), %xmm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; AVX512-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = load <2 x double>, <2 x double>* %ptr, align 16, !nontemporal !1
|
|
|
|
ret <2 x double> %0
|
|
|
|
}
|
|
|
|
|
|
|
|
define <16 x i8> @test_load_nt16xi8(<16 x i8>* nocapture %ptr) {
|
|
|
|
; SSE-LABEL: test_load_nt16xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE-NEXT: movntdqa (%rdi), %xmm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: test_load_nt16xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX-NEXT: vmovntdqa (%rdi), %xmm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; AVX-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512-LABEL: test_load_nt16xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX512-NEXT: vmovntdqa (%rdi), %xmm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; AVX512-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = load <16 x i8>, <16 x i8>* %ptr, align 16, !nontemporal !1
|
|
|
|
ret <16 x i8> %0
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @test_load_nt8xi16(<8 x i16>* nocapture %ptr) {
|
|
|
|
; SSE-LABEL: test_load_nt8xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE-NEXT: movntdqa (%rdi), %xmm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: test_load_nt8xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX-NEXT: vmovntdqa (%rdi), %xmm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; AVX-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512-LABEL: test_load_nt8xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX512-NEXT: vmovntdqa (%rdi), %xmm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; AVX512-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = load <8 x i16>, <8 x i16>* %ptr, align 16, !nontemporal !1
|
|
|
|
ret <8 x i16> %0
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i32> @test_load_nt4xi32(<4 x i32>* nocapture %ptr) {
|
|
|
|
; SSE-LABEL: test_load_nt4xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE-NEXT: movntdqa (%rdi), %xmm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: test_load_nt4xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX-NEXT: vmovntdqa (%rdi), %xmm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; AVX-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512-LABEL: test_load_nt4xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX512-NEXT: vmovntdqa (%rdi), %xmm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; AVX512-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = load <4 x i32>, <4 x i32>* %ptr, align 16, !nontemporal !1
|
|
|
|
ret <4 x i32> %0
|
|
|
|
}
|
|
|
|
|
|
|
|
define <2 x i64> @test_load_nt2xi64(<2 x i64>* nocapture %ptr) {
|
|
|
|
; SSE-LABEL: test_load_nt2xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE-NEXT: movntdqa (%rdi), %xmm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: test_load_nt2xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX-NEXT: vmovntdqa (%rdi), %xmm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; AVX-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512-LABEL: test_load_nt2xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX512-NEXT: vmovntdqa (%rdi), %xmm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; AVX512-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = load <2 x i64>, <2 x i64>* %ptr, align 16, !nontemporal !1
|
|
|
|
ret <2 x i64> %0
|
|
|
|
}
|
|
|
|
|
2016-06-01 21:20:25 +08:00
|
|
|
;
|
|
|
|
; 256-bit Vector Stores
|
|
|
|
;
|
|
|
|
|
|
|
|
define void @test_nt8xfloat(<8 x float>* nocapture %ptr, <8 x float> %X) {
|
|
|
|
; SSE-LABEL: test_nt8xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2016-06-01 21:20:25 +08:00
|
|
|
; SSE-NEXT: movntps %xmm0, (%rdi)
|
|
|
|
; SSE-NEXT: movntps %xmm1, 16(%rdi)
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: test_nt8xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2016-06-01 21:20:25 +08:00
|
|
|
; AVX-NEXT: vmovntps %ymm0, (%rdi)
|
|
|
|
; AVX-NEXT: vzeroupper
|
|
|
|
; AVX-NEXT: retq
|
|
|
|
;
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-LABEL: test_nt8xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: vmovntps %ymm0, (%rdi)
|
2017-03-03 17:03:24 +08:00
|
|
|
; AVX512-NEXT: vzeroupper
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: retq
|
2016-06-01 21:20:25 +08:00
|
|
|
entry:
|
|
|
|
store <8 x float> %X, <8 x float>* %ptr, align 32, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_nt4xdouble(<4 x double>* nocapture %ptr, <4 x double> %X) {
|
|
|
|
; SSE-LABEL: test_nt4xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2016-06-01 21:20:25 +08:00
|
|
|
; SSE-NEXT: movntpd %xmm0, (%rdi)
|
|
|
|
; SSE-NEXT: movntpd %xmm1, 16(%rdi)
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: test_nt4xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2016-06-01 21:20:25 +08:00
|
|
|
; AVX-NEXT: vmovntpd %ymm0, (%rdi)
|
|
|
|
; AVX-NEXT: vzeroupper
|
|
|
|
; AVX-NEXT: retq
|
|
|
|
;
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-LABEL: test_nt4xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: vmovntpd %ymm0, (%rdi)
|
2017-03-03 17:03:24 +08:00
|
|
|
; AVX512-NEXT: vzeroupper
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: retq
|
2016-06-01 21:20:25 +08:00
|
|
|
entry:
|
|
|
|
store <4 x double> %X, <4 x double>* %ptr, align 32, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_nt32xi8(<32 x i8>* nocapture %ptr, <32 x i8> %X) {
|
|
|
|
; SSE-LABEL: test_nt32xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2016-06-01 21:20:25 +08:00
|
|
|
; SSE-NEXT: movntdq %xmm0, (%rdi)
|
|
|
|
; SSE-NEXT: movntdq %xmm1, 16(%rdi)
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: test_nt32xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2016-06-02 12:19:45 +08:00
|
|
|
; AVX-NEXT: vmovntdq %ymm0, (%rdi)
|
2016-06-01 21:20:25 +08:00
|
|
|
; AVX-NEXT: vzeroupper
|
|
|
|
; AVX-NEXT: retq
|
|
|
|
;
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-LABEL: test_nt32xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: vmovntdq %ymm0, (%rdi)
|
2017-03-03 17:03:24 +08:00
|
|
|
; AVX512-NEXT: vzeroupper
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: retq
|
2016-06-01 21:20:25 +08:00
|
|
|
entry:
|
|
|
|
store <32 x i8> %X, <32 x i8>* %ptr, align 32, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_nt16xi16(<16 x i16>* nocapture %ptr, <16 x i16> %X) {
|
|
|
|
; SSE-LABEL: test_nt16xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2016-06-01 21:20:25 +08:00
|
|
|
; SSE-NEXT: movntdq %xmm0, (%rdi)
|
|
|
|
; SSE-NEXT: movntdq %xmm1, 16(%rdi)
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: test_nt16xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2016-06-02 12:19:45 +08:00
|
|
|
; AVX-NEXT: vmovntdq %ymm0, (%rdi)
|
2016-06-01 21:20:25 +08:00
|
|
|
; AVX-NEXT: vzeroupper
|
|
|
|
; AVX-NEXT: retq
|
|
|
|
;
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-LABEL: test_nt16xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: vmovntdq %ymm0, (%rdi)
|
2017-03-03 17:03:24 +08:00
|
|
|
; AVX512-NEXT: vzeroupper
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: retq
|
2016-06-01 21:20:25 +08:00
|
|
|
entry:
|
|
|
|
store <16 x i16> %X, <16 x i16>* %ptr, align 32, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_nt8xi32(<8 x i32>* nocapture %ptr, <8 x i32> %X) {
|
|
|
|
; SSE-LABEL: test_nt8xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2016-06-01 21:20:25 +08:00
|
|
|
; SSE-NEXT: movntdq %xmm0, (%rdi)
|
|
|
|
; SSE-NEXT: movntdq %xmm1, 16(%rdi)
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: test_nt8xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2016-06-02 12:19:45 +08:00
|
|
|
; AVX-NEXT: vmovntdq %ymm0, (%rdi)
|
2016-06-01 21:20:25 +08:00
|
|
|
; AVX-NEXT: vzeroupper
|
|
|
|
; AVX-NEXT: retq
|
|
|
|
;
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-LABEL: test_nt8xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: vmovntdq %ymm0, (%rdi)
|
2017-03-03 17:03:24 +08:00
|
|
|
; AVX512-NEXT: vzeroupper
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: retq
|
2016-06-01 21:20:25 +08:00
|
|
|
entry:
|
|
|
|
store <8 x i32> %X, <8 x i32>* %ptr, align 32, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_nt4xi64(<4 x i64>* nocapture %ptr, <4 x i64> %X) {
|
|
|
|
; SSE-LABEL: test_nt4xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2016-06-01 21:20:25 +08:00
|
|
|
; SSE-NEXT: movntdq %xmm0, (%rdi)
|
|
|
|
; SSE-NEXT: movntdq %xmm1, 16(%rdi)
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: test_nt4xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2016-06-01 21:20:25 +08:00
|
|
|
; AVX-NEXT: vmovntdq %ymm0, (%rdi)
|
|
|
|
; AVX-NEXT: vzeroupper
|
|
|
|
; AVX-NEXT: retq
|
|
|
|
;
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-LABEL: test_nt4xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: vmovntdq %ymm0, (%rdi)
|
2017-03-03 17:03:24 +08:00
|
|
|
; AVX512-NEXT: vzeroupper
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: retq
|
2016-06-01 21:20:25 +08:00
|
|
|
entry:
|
|
|
|
store <4 x i64> %X, <4 x i64>* %ptr, align 32, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2016-06-02 21:51:50 +08:00
|
|
|
;
|
|
|
|
; 256-bit Vector Loads
|
|
|
|
;
|
|
|
|
|
|
|
|
define <8 x float> @test_load_nt8xfloat(<8 x float>* nocapture %ptr) {
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE2-LABEL: test_load_nt8xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE2-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE2-NEXT: movaps 16(%rdi), %xmm1
|
|
|
|
; SSE2-NEXT: retq
|
2016-06-02 21:51:50 +08:00
|
|
|
;
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE4A-LABEL: test_load_nt8xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE4A: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE4A-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE4A-NEXT: movaps 16(%rdi), %xmm1
|
|
|
|
; SSE4A-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: test_load_nt8xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE41-NEXT: movntdqa (%rdi), %xmm0
|
|
|
|
; SSE41-NEXT: movntdqa 16(%rdi), %xmm1
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX1-LABEL: test_load_nt8xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0: # %entry
|
2017-06-06 22:18:39 +08:00
|
|
|
; AVX1-NEXT: vmovntdqa (%rdi), %xmm0
|
2017-11-29 01:15:09 +08:00
|
|
|
; AVX1-NEXT: # implicit-def: %ymm1
|
2017-06-06 22:18:39 +08:00
|
|
|
; AVX1-NEXT: vmovaps %xmm0, %xmm1
|
|
|
|
; AVX1-NEXT: vmovntdqa 16(%rdi), %xmm0
|
|
|
|
; AVX1-NEXT: vinsertf128 $1, %xmm0, %ymm1, %ymm0
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-LABEL: test_load_nt8xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX2-NEXT: vmovntdqa (%rdi), %ymm0
|
|
|
|
; AVX2-NEXT: retq
|
2016-06-02 21:51:50 +08:00
|
|
|
;
|
|
|
|
; AVX512-LABEL: test_load_nt8xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX512-NEXT: vmovntdqa (%rdi), %ymm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; AVX512-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = load <8 x float>, <8 x float>* %ptr, align 32, !nontemporal !1
|
|
|
|
ret <8 x float> %0
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x double> @test_load_nt4xdouble(<4 x double>* nocapture %ptr) {
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE2-LABEL: test_load_nt4xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE2-NEXT: movapd (%rdi), %xmm0
|
|
|
|
; SSE2-NEXT: movapd 16(%rdi), %xmm1
|
|
|
|
; SSE2-NEXT: retq
|
2016-06-02 21:51:50 +08:00
|
|
|
;
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE4A-LABEL: test_load_nt4xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE4A: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE4A-NEXT: movapd (%rdi), %xmm0
|
|
|
|
; SSE4A-NEXT: movapd 16(%rdi), %xmm1
|
|
|
|
; SSE4A-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: test_load_nt4xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE41-NEXT: movntdqa (%rdi), %xmm0
|
|
|
|
; SSE41-NEXT: movntdqa 16(%rdi), %xmm1
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX1-LABEL: test_load_nt4xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0: # %entry
|
2017-06-06 22:18:39 +08:00
|
|
|
; AVX1-NEXT: vmovntdqa (%rdi), %xmm0
|
2017-11-29 01:15:09 +08:00
|
|
|
; AVX1-NEXT: # implicit-def: %ymm1
|
2017-06-06 22:18:39 +08:00
|
|
|
; AVX1-NEXT: vmovaps %xmm0, %xmm1
|
|
|
|
; AVX1-NEXT: vmovntdqa 16(%rdi), %xmm0
|
|
|
|
; AVX1-NEXT: vinsertf128 $1, %xmm0, %ymm1, %ymm0
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-LABEL: test_load_nt4xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX2-NEXT: vmovntdqa (%rdi), %ymm0
|
|
|
|
; AVX2-NEXT: retq
|
2016-06-02 21:51:50 +08:00
|
|
|
;
|
|
|
|
; AVX512-LABEL: test_load_nt4xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX512-NEXT: vmovntdqa (%rdi), %ymm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; AVX512-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = load <4 x double>, <4 x double>* %ptr, align 32, !nontemporal !1
|
|
|
|
ret <4 x double> %0
|
|
|
|
}
|
|
|
|
|
|
|
|
define <32 x i8> @test_load_nt32xi8(<32 x i8>* nocapture %ptr) {
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE2-LABEL: test_load_nt32xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE2-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE2-NEXT: movaps 16(%rdi), %xmm1
|
|
|
|
; SSE2-NEXT: retq
|
2016-06-02 21:51:50 +08:00
|
|
|
;
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE4A-LABEL: test_load_nt32xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE4A: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE4A-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE4A-NEXT: movaps 16(%rdi), %xmm1
|
|
|
|
; SSE4A-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: test_load_nt32xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE41-NEXT: movntdqa (%rdi), %xmm0
|
|
|
|
; SSE41-NEXT: movntdqa 16(%rdi), %xmm1
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX1-LABEL: test_load_nt32xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0: # %entry
|
2017-06-06 22:18:39 +08:00
|
|
|
; AVX1-NEXT: vmovntdqa (%rdi), %xmm0
|
2017-11-29 01:15:09 +08:00
|
|
|
; AVX1-NEXT: # implicit-def: %ymm1
|
2017-06-06 22:18:39 +08:00
|
|
|
; AVX1-NEXT: vmovaps %xmm0, %xmm1
|
|
|
|
; AVX1-NEXT: vmovntdqa 16(%rdi), %xmm0
|
|
|
|
; AVX1-NEXT: vinsertf128 $1, %xmm0, %ymm1, %ymm0
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-LABEL: test_load_nt32xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX2-NEXT: vmovntdqa (%rdi), %ymm0
|
|
|
|
; AVX2-NEXT: retq
|
2016-06-02 21:51:50 +08:00
|
|
|
;
|
|
|
|
; AVX512-LABEL: test_load_nt32xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX512-NEXT: vmovntdqa (%rdi), %ymm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; AVX512-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = load <32 x i8>, <32 x i8>* %ptr, align 32, !nontemporal !1
|
|
|
|
ret <32 x i8> %0
|
|
|
|
}
|
|
|
|
|
|
|
|
define <16 x i16> @test_load_nt16xi16(<16 x i16>* nocapture %ptr) {
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE2-LABEL: test_load_nt16xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE2-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE2-NEXT: movaps 16(%rdi), %xmm1
|
|
|
|
; SSE2-NEXT: retq
|
2016-06-02 21:51:50 +08:00
|
|
|
;
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE4A-LABEL: test_load_nt16xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE4A: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE4A-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE4A-NEXT: movaps 16(%rdi), %xmm1
|
|
|
|
; SSE4A-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: test_load_nt16xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE41-NEXT: movntdqa (%rdi), %xmm0
|
|
|
|
; SSE41-NEXT: movntdqa 16(%rdi), %xmm1
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX1-LABEL: test_load_nt16xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0: # %entry
|
2017-06-06 22:18:39 +08:00
|
|
|
; AVX1-NEXT: vmovntdqa (%rdi), %xmm0
|
2017-11-29 01:15:09 +08:00
|
|
|
; AVX1-NEXT: # implicit-def: %ymm1
|
2017-06-06 22:18:39 +08:00
|
|
|
; AVX1-NEXT: vmovaps %xmm0, %xmm1
|
|
|
|
; AVX1-NEXT: vmovntdqa 16(%rdi), %xmm0
|
|
|
|
; AVX1-NEXT: vinsertf128 $1, %xmm0, %ymm1, %ymm0
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-LABEL: test_load_nt16xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX2-NEXT: vmovntdqa (%rdi), %ymm0
|
|
|
|
; AVX2-NEXT: retq
|
2016-06-02 21:51:50 +08:00
|
|
|
;
|
|
|
|
; AVX512-LABEL: test_load_nt16xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX512-NEXT: vmovntdqa (%rdi), %ymm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; AVX512-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = load <16 x i16>, <16 x i16>* %ptr, align 32, !nontemporal !1
|
|
|
|
ret <16 x i16> %0
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i32> @test_load_nt8xi32(<8 x i32>* nocapture %ptr) {
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE2-LABEL: test_load_nt8xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE2-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE2-NEXT: movaps 16(%rdi), %xmm1
|
|
|
|
; SSE2-NEXT: retq
|
2016-06-02 21:51:50 +08:00
|
|
|
;
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE4A-LABEL: test_load_nt8xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE4A: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE4A-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE4A-NEXT: movaps 16(%rdi), %xmm1
|
|
|
|
; SSE4A-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: test_load_nt8xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE41-NEXT: movntdqa (%rdi), %xmm0
|
|
|
|
; SSE41-NEXT: movntdqa 16(%rdi), %xmm1
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX1-LABEL: test_load_nt8xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0: # %entry
|
2017-06-06 22:18:39 +08:00
|
|
|
; AVX1-NEXT: vmovntdqa (%rdi), %xmm0
|
2017-11-29 01:15:09 +08:00
|
|
|
; AVX1-NEXT: # implicit-def: %ymm1
|
2017-06-06 22:18:39 +08:00
|
|
|
; AVX1-NEXT: vmovaps %xmm0, %xmm1
|
|
|
|
; AVX1-NEXT: vmovntdqa 16(%rdi), %xmm0
|
|
|
|
; AVX1-NEXT: vinsertf128 $1, %xmm0, %ymm1, %ymm0
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-LABEL: test_load_nt8xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX2-NEXT: vmovntdqa (%rdi), %ymm0
|
|
|
|
; AVX2-NEXT: retq
|
2016-06-02 21:51:50 +08:00
|
|
|
;
|
|
|
|
; AVX512-LABEL: test_load_nt8xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX512-NEXT: vmovntdqa (%rdi), %ymm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; AVX512-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = load <8 x i32>, <8 x i32>* %ptr, align 32, !nontemporal !1
|
|
|
|
ret <8 x i32> %0
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i64> @test_load_nt4xi64(<4 x i64>* nocapture %ptr) {
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE2-LABEL: test_load_nt4xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE2-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE2-NEXT: movaps 16(%rdi), %xmm1
|
|
|
|
; SSE2-NEXT: retq
|
2016-06-02 21:51:50 +08:00
|
|
|
;
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE4A-LABEL: test_load_nt4xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE4A: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE4A-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE4A-NEXT: movaps 16(%rdi), %xmm1
|
|
|
|
; SSE4A-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: test_load_nt4xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE41-NEXT: movntdqa (%rdi), %xmm0
|
|
|
|
; SSE41-NEXT: movntdqa 16(%rdi), %xmm1
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX1-LABEL: test_load_nt4xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0: # %entry
|
2017-06-06 22:18:39 +08:00
|
|
|
; AVX1-NEXT: vmovntdqa (%rdi), %xmm0
|
2017-11-29 01:15:09 +08:00
|
|
|
; AVX1-NEXT: # implicit-def: %ymm1
|
2017-06-06 22:18:39 +08:00
|
|
|
; AVX1-NEXT: vmovaps %xmm0, %xmm1
|
|
|
|
; AVX1-NEXT: vmovntdqa 16(%rdi), %xmm0
|
|
|
|
; AVX1-NEXT: vinsertf128 $1, %xmm0, %ymm1, %ymm0
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-LABEL: test_load_nt4xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX2-NEXT: vmovntdqa (%rdi), %ymm0
|
|
|
|
; AVX2-NEXT: retq
|
2016-06-02 21:51:50 +08:00
|
|
|
;
|
|
|
|
; AVX512-LABEL: test_load_nt4xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX512-NEXT: vmovntdqa (%rdi), %ymm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; AVX512-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = load <4 x i64>, <4 x i64>* %ptr, align 32, !nontemporal !1
|
|
|
|
ret <4 x i64> %0
|
|
|
|
}
|
|
|
|
|
2016-06-01 21:58:00 +08:00
|
|
|
;
|
|
|
|
; 512-bit Vector Stores
|
|
|
|
;
|
|
|
|
|
|
|
|
define void @test_nt16xfloat(<16 x float>* nocapture %ptr, <16 x float> %X) {
|
|
|
|
; SSE-LABEL: test_nt16xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; SSE-NEXT: movntps %xmm0, (%rdi)
|
|
|
|
; SSE-NEXT: movntps %xmm1, 16(%rdi)
|
|
|
|
; SSE-NEXT: movntps %xmm2, 32(%rdi)
|
|
|
|
; SSE-NEXT: movntps %xmm3, 48(%rdi)
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: test_nt16xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX-NEXT: vmovntps %ymm0, (%rdi)
|
|
|
|
; AVX-NEXT: vmovntps %ymm1, 32(%rdi)
|
|
|
|
; AVX-NEXT: vzeroupper
|
|
|
|
; AVX-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512-LABEL: test_nt16xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: vmovntps %zmm0, (%rdi)
|
2017-03-03 17:03:24 +08:00
|
|
|
; AVX512-NEXT: vzeroupper
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: retq
|
|
|
|
entry:
|
|
|
|
store <16 x float> %X, <16 x float>* %ptr, align 64, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_nt8xdouble(<8 x double>* nocapture %ptr, <8 x double> %X) {
|
|
|
|
; SSE-LABEL: test_nt8xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; SSE-NEXT: movntpd %xmm0, (%rdi)
|
|
|
|
; SSE-NEXT: movntpd %xmm1, 16(%rdi)
|
|
|
|
; SSE-NEXT: movntpd %xmm2, 32(%rdi)
|
|
|
|
; SSE-NEXT: movntpd %xmm3, 48(%rdi)
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: test_nt8xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX-NEXT: vmovntpd %ymm0, (%rdi)
|
|
|
|
; AVX-NEXT: vmovntpd %ymm1, 32(%rdi)
|
|
|
|
; AVX-NEXT: vzeroupper
|
|
|
|
; AVX-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512-LABEL: test_nt8xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: vmovntpd %zmm0, (%rdi)
|
2017-03-03 17:03:24 +08:00
|
|
|
; AVX512-NEXT: vzeroupper
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: retq
|
|
|
|
entry:
|
|
|
|
store <8 x double> %X, <8 x double>* %ptr, align 64, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_nt64xi8(<64 x i8>* nocapture %ptr, <64 x i8> %X) {
|
|
|
|
; SSE-LABEL: test_nt64xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; SSE-NEXT: movntdq %xmm0, (%rdi)
|
|
|
|
; SSE-NEXT: movntdq %xmm1, 16(%rdi)
|
|
|
|
; SSE-NEXT: movntdq %xmm2, 32(%rdi)
|
|
|
|
; SSE-NEXT: movntdq %xmm3, 48(%rdi)
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: test_nt64xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2016-06-02 12:19:45 +08:00
|
|
|
; AVX-NEXT: vmovntdq %ymm0, (%rdi)
|
|
|
|
; AVX-NEXT: vmovntdq %ymm1, 32(%rdi)
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX-NEXT: vzeroupper
|
|
|
|
; AVX-NEXT: retq
|
|
|
|
;
|
2017-10-28 04:13:06 +08:00
|
|
|
; AVX512VL-LABEL: test_nt64xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512VL: # %bb.0: # %entry
|
2017-10-28 04:13:06 +08:00
|
|
|
; AVX512VL-NEXT: vmovntdq %ymm0, (%rdi)
|
|
|
|
; AVX512VL-NEXT: vmovntdq %ymm1, 32(%rdi)
|
|
|
|
; AVX512VL-NEXT: vzeroupper
|
|
|
|
; AVX512VL-NEXT: retq
|
|
|
|
;
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512F-LABEL: test_nt64xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512F: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512F-NEXT: vmovntdq %ymm0, (%rdi)
|
|
|
|
; AVX512F-NEXT: vmovntdq %ymm1, 32(%rdi)
|
2017-03-03 17:03:24 +08:00
|
|
|
; AVX512F-NEXT: vzeroupper
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512F-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512BW-LABEL: test_nt64xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512BW: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512BW-NEXT: vmovntdq %zmm0, (%rdi)
|
2017-03-03 17:03:24 +08:00
|
|
|
; AVX512BW-NEXT: vzeroupper
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512BW-NEXT: retq
|
|
|
|
entry:
|
|
|
|
store <64 x i8> %X, <64 x i8>* %ptr, align 64, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_nt32xi16(<32 x i16>* nocapture %ptr, <32 x i16> %X) {
|
|
|
|
; SSE-LABEL: test_nt32xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; SSE-NEXT: movntdq %xmm0, (%rdi)
|
|
|
|
; SSE-NEXT: movntdq %xmm1, 16(%rdi)
|
|
|
|
; SSE-NEXT: movntdq %xmm2, 32(%rdi)
|
|
|
|
; SSE-NEXT: movntdq %xmm3, 48(%rdi)
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: test_nt32xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2016-06-02 12:19:45 +08:00
|
|
|
; AVX-NEXT: vmovntdq %ymm0, (%rdi)
|
|
|
|
; AVX-NEXT: vmovntdq %ymm1, 32(%rdi)
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX-NEXT: vzeroupper
|
|
|
|
; AVX-NEXT: retq
|
|
|
|
;
|
2017-10-28 04:13:06 +08:00
|
|
|
; AVX512VL-LABEL: test_nt32xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512VL: # %bb.0: # %entry
|
2017-10-28 04:13:06 +08:00
|
|
|
; AVX512VL-NEXT: vmovntdq %ymm0, (%rdi)
|
|
|
|
; AVX512VL-NEXT: vmovntdq %ymm1, 32(%rdi)
|
|
|
|
; AVX512VL-NEXT: vzeroupper
|
|
|
|
; AVX512VL-NEXT: retq
|
|
|
|
;
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512F-LABEL: test_nt32xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512F: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512F-NEXT: vmovntdq %ymm0, (%rdi)
|
|
|
|
; AVX512F-NEXT: vmovntdq %ymm1, 32(%rdi)
|
2017-03-03 17:03:24 +08:00
|
|
|
; AVX512F-NEXT: vzeroupper
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512F-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512BW-LABEL: test_nt32xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512BW: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512BW-NEXT: vmovntdq %zmm0, (%rdi)
|
2017-03-03 17:03:24 +08:00
|
|
|
; AVX512BW-NEXT: vzeroupper
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512BW-NEXT: retq
|
|
|
|
entry:
|
|
|
|
store <32 x i16> %X, <32 x i16>* %ptr, align 64, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_nt16xi32(<16 x i32>* nocapture %ptr, <16 x i32> %X) {
|
|
|
|
; SSE-LABEL: test_nt16xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; SSE-NEXT: movntdq %xmm0, (%rdi)
|
|
|
|
; SSE-NEXT: movntdq %xmm1, 16(%rdi)
|
|
|
|
; SSE-NEXT: movntdq %xmm2, 32(%rdi)
|
|
|
|
; SSE-NEXT: movntdq %xmm3, 48(%rdi)
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: test_nt16xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2016-06-02 12:19:45 +08:00
|
|
|
; AVX-NEXT: vmovntdq %ymm0, (%rdi)
|
|
|
|
; AVX-NEXT: vmovntdq %ymm1, 32(%rdi)
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX-NEXT: vzeroupper
|
|
|
|
; AVX-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512-LABEL: test_nt16xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: vmovntdq %zmm0, (%rdi)
|
2017-03-03 17:03:24 +08:00
|
|
|
; AVX512-NEXT: vzeroupper
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: retq
|
|
|
|
entry:
|
|
|
|
store <16 x i32> %X, <16 x i32>* %ptr, align 64, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_nt8xi64(<8 x i64>* nocapture %ptr, <8 x i64> %X) {
|
|
|
|
; SSE-LABEL: test_nt8xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; SSE-NEXT: movntdq %xmm0, (%rdi)
|
|
|
|
; SSE-NEXT: movntdq %xmm1, 16(%rdi)
|
|
|
|
; SSE-NEXT: movntdq %xmm2, 32(%rdi)
|
|
|
|
; SSE-NEXT: movntdq %xmm3, 48(%rdi)
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: test_nt8xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX-NEXT: vmovntdq %ymm0, (%rdi)
|
|
|
|
; AVX-NEXT: vmovntdq %ymm1, 32(%rdi)
|
|
|
|
; AVX-NEXT: vzeroupper
|
|
|
|
; AVX-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512-LABEL: test_nt8xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: vmovntdq %zmm0, (%rdi)
|
2017-03-03 17:03:24 +08:00
|
|
|
; AVX512-NEXT: vzeroupper
|
2016-06-01 21:58:00 +08:00
|
|
|
; AVX512-NEXT: retq
|
|
|
|
entry:
|
|
|
|
store <8 x i64> %X, <8 x i64>* %ptr, align 64, !nontemporal !1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2016-06-02 21:51:50 +08:00
|
|
|
;
|
|
|
|
; 512-bit Vector Loads
|
|
|
|
;
|
|
|
|
|
|
|
|
define <16 x float> @test_load_nt16xfloat(<16 x float>* nocapture %ptr) {
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE2-LABEL: test_load_nt16xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE2-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE2-NEXT: movaps 16(%rdi), %xmm1
|
|
|
|
; SSE2-NEXT: movaps 32(%rdi), %xmm2
|
|
|
|
; SSE2-NEXT: movaps 48(%rdi), %xmm3
|
|
|
|
; SSE2-NEXT: retq
|
2016-06-02 21:51:50 +08:00
|
|
|
;
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE4A-LABEL: test_load_nt16xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE4A: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE4A-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE4A-NEXT: movaps 16(%rdi), %xmm1
|
|
|
|
; SSE4A-NEXT: movaps 32(%rdi), %xmm2
|
|
|
|
; SSE4A-NEXT: movaps 48(%rdi), %xmm3
|
|
|
|
; SSE4A-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: test_load_nt16xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE41-NEXT: movntdqa (%rdi), %xmm0
|
|
|
|
; SSE41-NEXT: movntdqa 16(%rdi), %xmm1
|
|
|
|
; SSE41-NEXT: movntdqa 32(%rdi), %xmm2
|
|
|
|
; SSE41-NEXT: movntdqa 48(%rdi), %xmm3
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX1-LABEL: test_load_nt16xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0: # %entry
|
2017-06-06 00:02:01 +08:00
|
|
|
; AVX1-NEXT: vmovntdqa (%rdi), %xmm0
|
2017-11-29 01:15:09 +08:00
|
|
|
; AVX1-NEXT: # implicit-def: %ymm1
|
2017-06-06 00:02:01 +08:00
|
|
|
; AVX1-NEXT: vmovaps %xmm0, %xmm1
|
|
|
|
; AVX1-NEXT: vmovntdqa 16(%rdi), %xmm0
|
|
|
|
; AVX1-NEXT: vinsertf128 $1, %xmm0, %ymm1, %ymm0
|
|
|
|
; AVX1-NEXT: vmovntdqa 32(%rdi), %xmm2
|
2017-11-29 01:15:09 +08:00
|
|
|
; AVX1-NEXT: # implicit-def: %ymm1
|
2017-06-06 00:02:01 +08:00
|
|
|
; AVX1-NEXT: vmovaps %xmm2, %xmm1
|
|
|
|
; AVX1-NEXT: vmovntdqa 48(%rdi), %xmm2
|
|
|
|
; AVX1-NEXT: vinsertf128 $1, %xmm2, %ymm1, %ymm1
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-LABEL: test_load_nt16xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX2-NEXT: vmovntdqa (%rdi), %ymm0
|
|
|
|
; AVX2-NEXT: vmovntdqa 32(%rdi), %ymm1
|
|
|
|
; AVX2-NEXT: retq
|
2016-06-02 21:51:50 +08:00
|
|
|
;
|
|
|
|
; AVX512-LABEL: test_load_nt16xfloat:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX512-NEXT: vmovntdqa (%rdi), %zmm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; AVX512-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = load <16 x float>, <16 x float>* %ptr, align 64, !nontemporal !1
|
|
|
|
ret <16 x float> %0
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x double> @test_load_nt8xdouble(<8 x double>* nocapture %ptr) {
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE2-LABEL: test_load_nt8xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE2-NEXT: movapd (%rdi), %xmm0
|
|
|
|
; SSE2-NEXT: movapd 16(%rdi), %xmm1
|
|
|
|
; SSE2-NEXT: movapd 32(%rdi), %xmm2
|
|
|
|
; SSE2-NEXT: movapd 48(%rdi), %xmm3
|
|
|
|
; SSE2-NEXT: retq
|
2016-06-02 21:51:50 +08:00
|
|
|
;
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE4A-LABEL: test_load_nt8xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE4A: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE4A-NEXT: movapd (%rdi), %xmm0
|
|
|
|
; SSE4A-NEXT: movapd 16(%rdi), %xmm1
|
|
|
|
; SSE4A-NEXT: movapd 32(%rdi), %xmm2
|
|
|
|
; SSE4A-NEXT: movapd 48(%rdi), %xmm3
|
|
|
|
; SSE4A-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: test_load_nt8xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; SSE41-NEXT: movntdqa (%rdi), %xmm0
|
|
|
|
; SSE41-NEXT: movntdqa 16(%rdi), %xmm1
|
|
|
|
; SSE41-NEXT: movntdqa 32(%rdi), %xmm2
|
|
|
|
; SSE41-NEXT: movntdqa 48(%rdi), %xmm3
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX1-LABEL: test_load_nt8xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0: # %entry
|
2017-06-06 00:02:01 +08:00
|
|
|
; AVX1-NEXT: vmovntdqa (%rdi), %xmm0
|
2017-11-29 01:15:09 +08:00
|
|
|
; AVX1-NEXT: # implicit-def: %ymm1
|
2017-06-06 00:02:01 +08:00
|
|
|
; AVX1-NEXT: vmovaps %xmm0, %xmm1
|
|
|
|
; AVX1-NEXT: vmovntdqa 16(%rdi), %xmm0
|
|
|
|
; AVX1-NEXT: vinsertf128 $1, %xmm0, %ymm1, %ymm0
|
|
|
|
; AVX1-NEXT: vmovntdqa 32(%rdi), %xmm2
|
2017-11-29 01:15:09 +08:00
|
|
|
; AVX1-NEXT: # implicit-def: %ymm1
|
2017-06-06 00:02:01 +08:00
|
|
|
; AVX1-NEXT: vmovaps %xmm2, %xmm1
|
|
|
|
; AVX1-NEXT: vmovntdqa 48(%rdi), %xmm2
|
|
|
|
; AVX1-NEXT: vinsertf128 $1, %xmm2, %ymm1, %ymm1
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-LABEL: test_load_nt8xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX2-NEXT: vmovntdqa (%rdi), %ymm0
|
|
|
|
; AVX2-NEXT: vmovntdqa 32(%rdi), %ymm1
|
|
|
|
; AVX2-NEXT: retq
|
2016-06-02 21:51:50 +08:00
|
|
|
;
|
|
|
|
; AVX512-LABEL: test_load_nt8xdouble:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-07 21:34:24 +08:00
|
|
|
; AVX512-NEXT: vmovntdqa (%rdi), %zmm0
|
2016-06-02 21:51:50 +08:00
|
|
|
; AVX512-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = load <8 x double>, <8 x double>* %ptr, align 64, !nontemporal !1
|
|
|
|
ret <8 x double> %0
|
|
|
|
}
|
|
|
|
|
2016-06-07 23:12:47 +08:00
|
|
|
define <64 x i8> @test_load_nt64xi8(<64 x i8>* nocapture %ptr) {
|
|
|
|
; SSE2-LABEL: test_load_nt64xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; SSE2-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE2-NEXT: movaps 16(%rdi), %xmm1
|
|
|
|
; SSE2-NEXT: movaps 32(%rdi), %xmm2
|
|
|
|
; SSE2-NEXT: movaps 48(%rdi), %xmm3
|
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE4A-LABEL: test_load_nt64xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE4A: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; SSE4A-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE4A-NEXT: movaps 16(%rdi), %xmm1
|
|
|
|
; SSE4A-NEXT: movaps 32(%rdi), %xmm2
|
|
|
|
; SSE4A-NEXT: movaps 48(%rdi), %xmm3
|
|
|
|
; SSE4A-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: test_load_nt64xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; SSE41-NEXT: movntdqa (%rdi), %xmm0
|
|
|
|
; SSE41-NEXT: movntdqa 16(%rdi), %xmm1
|
|
|
|
; SSE41-NEXT: movntdqa 32(%rdi), %xmm2
|
|
|
|
; SSE41-NEXT: movntdqa 48(%rdi), %xmm3
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX1-LABEL: test_load_nt64xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0: # %entry
|
2017-06-06 00:02:01 +08:00
|
|
|
; AVX1-NEXT: vmovntdqa (%rdi), %xmm0
|
2017-11-29 01:15:09 +08:00
|
|
|
; AVX1-NEXT: # implicit-def: %ymm1
|
2017-06-06 00:02:01 +08:00
|
|
|
; AVX1-NEXT: vmovaps %xmm0, %xmm1
|
|
|
|
; AVX1-NEXT: vmovntdqa 16(%rdi), %xmm0
|
|
|
|
; AVX1-NEXT: vinsertf128 $1, %xmm0, %ymm1, %ymm0
|
|
|
|
; AVX1-NEXT: vmovntdqa 32(%rdi), %xmm2
|
2017-11-29 01:15:09 +08:00
|
|
|
; AVX1-NEXT: # implicit-def: %ymm1
|
2017-06-06 00:02:01 +08:00
|
|
|
; AVX1-NEXT: vmovaps %xmm2, %xmm1
|
|
|
|
; AVX1-NEXT: vmovntdqa 48(%rdi), %xmm2
|
|
|
|
; AVX1-NEXT: vinsertf128 $1, %xmm2, %ymm1, %ymm1
|
2016-06-07 23:12:47 +08:00
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-LABEL: test_load_nt64xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; AVX2-NEXT: vmovntdqa (%rdi), %ymm0
|
|
|
|
; AVX2-NEXT: vmovntdqa 32(%rdi), %ymm1
|
|
|
|
; AVX2-NEXT: retq
|
|
|
|
;
|
2017-10-28 04:13:06 +08:00
|
|
|
; AVX512VL-LABEL: test_load_nt64xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512VL: # %bb.0: # %entry
|
2017-10-28 04:13:06 +08:00
|
|
|
; AVX512VL-NEXT: vmovntdqa (%rdi), %ymm0
|
|
|
|
; AVX512VL-NEXT: vmovntdqa 32(%rdi), %ymm1
|
|
|
|
; AVX512VL-NEXT: retq
|
|
|
|
;
|
2016-06-07 23:12:47 +08:00
|
|
|
; AVX512F-LABEL: test_load_nt64xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512F: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; AVX512F-NEXT: vmovntdqa (%rdi), %ymm0
|
|
|
|
; AVX512F-NEXT: vmovntdqa 32(%rdi), %ymm1
|
|
|
|
; AVX512F-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512BW-LABEL: test_load_nt64xi8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512BW: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; AVX512BW-NEXT: vmovntdqa (%rdi), %zmm0
|
|
|
|
; AVX512BW-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = load <64 x i8>, <64 x i8>* %ptr, align 64, !nontemporal !1
|
|
|
|
ret <64 x i8> %0
|
|
|
|
}
|
|
|
|
|
|
|
|
define <32 x i16> @test_load_nt32xi16(<32 x i16>* nocapture %ptr) {
|
|
|
|
; SSE2-LABEL: test_load_nt32xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; SSE2-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE2-NEXT: movaps 16(%rdi), %xmm1
|
|
|
|
; SSE2-NEXT: movaps 32(%rdi), %xmm2
|
|
|
|
; SSE2-NEXT: movaps 48(%rdi), %xmm3
|
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE4A-LABEL: test_load_nt32xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE4A: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; SSE4A-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE4A-NEXT: movaps 16(%rdi), %xmm1
|
|
|
|
; SSE4A-NEXT: movaps 32(%rdi), %xmm2
|
|
|
|
; SSE4A-NEXT: movaps 48(%rdi), %xmm3
|
|
|
|
; SSE4A-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: test_load_nt32xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; SSE41-NEXT: movntdqa (%rdi), %xmm0
|
|
|
|
; SSE41-NEXT: movntdqa 16(%rdi), %xmm1
|
|
|
|
; SSE41-NEXT: movntdqa 32(%rdi), %xmm2
|
|
|
|
; SSE41-NEXT: movntdqa 48(%rdi), %xmm3
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX1-LABEL: test_load_nt32xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0: # %entry
|
2017-06-06 00:02:01 +08:00
|
|
|
; AVX1-NEXT: vmovntdqa (%rdi), %xmm0
|
2017-11-29 01:15:09 +08:00
|
|
|
; AVX1-NEXT: # implicit-def: %ymm1
|
2017-06-06 00:02:01 +08:00
|
|
|
; AVX1-NEXT: vmovaps %xmm0, %xmm1
|
|
|
|
; AVX1-NEXT: vmovntdqa 16(%rdi), %xmm0
|
|
|
|
; AVX1-NEXT: vinsertf128 $1, %xmm0, %ymm1, %ymm0
|
|
|
|
; AVX1-NEXT: vmovntdqa 32(%rdi), %xmm2
|
2017-11-29 01:15:09 +08:00
|
|
|
; AVX1-NEXT: # implicit-def: %ymm1
|
2017-06-06 00:02:01 +08:00
|
|
|
; AVX1-NEXT: vmovaps %xmm2, %xmm1
|
|
|
|
; AVX1-NEXT: vmovntdqa 48(%rdi), %xmm2
|
|
|
|
; AVX1-NEXT: vinsertf128 $1, %xmm2, %ymm1, %ymm1
|
2016-06-07 23:12:47 +08:00
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-LABEL: test_load_nt32xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; AVX2-NEXT: vmovntdqa (%rdi), %ymm0
|
|
|
|
; AVX2-NEXT: vmovntdqa 32(%rdi), %ymm1
|
|
|
|
; AVX2-NEXT: retq
|
|
|
|
;
|
2017-10-28 04:13:06 +08:00
|
|
|
; AVX512VL-LABEL: test_load_nt32xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512VL: # %bb.0: # %entry
|
2017-10-28 04:13:06 +08:00
|
|
|
; AVX512VL-NEXT: vmovntdqa (%rdi), %ymm0
|
|
|
|
; AVX512VL-NEXT: vmovntdqa 32(%rdi), %ymm1
|
|
|
|
; AVX512VL-NEXT: retq
|
|
|
|
;
|
2016-06-07 23:12:47 +08:00
|
|
|
; AVX512F-LABEL: test_load_nt32xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512F: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; AVX512F-NEXT: vmovntdqa (%rdi), %ymm0
|
|
|
|
; AVX512F-NEXT: vmovntdqa 32(%rdi), %ymm1
|
|
|
|
; AVX512F-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512BW-LABEL: test_load_nt32xi16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512BW: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; AVX512BW-NEXT: vmovntdqa (%rdi), %zmm0
|
|
|
|
; AVX512BW-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = load <32 x i16>, <32 x i16>* %ptr, align 64, !nontemporal !1
|
|
|
|
ret <32 x i16> %0
|
|
|
|
}
|
|
|
|
|
|
|
|
define <16 x i32> @test_load_nt16xi32(<16 x i32>* nocapture %ptr) {
|
|
|
|
; SSE2-LABEL: test_load_nt16xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; SSE2-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE2-NEXT: movaps 16(%rdi), %xmm1
|
|
|
|
; SSE2-NEXT: movaps 32(%rdi), %xmm2
|
|
|
|
; SSE2-NEXT: movaps 48(%rdi), %xmm3
|
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE4A-LABEL: test_load_nt16xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE4A: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; SSE4A-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE4A-NEXT: movaps 16(%rdi), %xmm1
|
|
|
|
; SSE4A-NEXT: movaps 32(%rdi), %xmm2
|
|
|
|
; SSE4A-NEXT: movaps 48(%rdi), %xmm3
|
|
|
|
; SSE4A-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: test_load_nt16xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; SSE41-NEXT: movntdqa (%rdi), %xmm0
|
|
|
|
; SSE41-NEXT: movntdqa 16(%rdi), %xmm1
|
|
|
|
; SSE41-NEXT: movntdqa 32(%rdi), %xmm2
|
|
|
|
; SSE41-NEXT: movntdqa 48(%rdi), %xmm3
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX1-LABEL: test_load_nt16xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0: # %entry
|
2017-06-06 00:02:01 +08:00
|
|
|
; AVX1-NEXT: vmovntdqa (%rdi), %xmm0
|
2017-11-29 01:15:09 +08:00
|
|
|
; AVX1-NEXT: # implicit-def: %ymm1
|
2017-06-06 00:02:01 +08:00
|
|
|
; AVX1-NEXT: vmovaps %xmm0, %xmm1
|
|
|
|
; AVX1-NEXT: vmovntdqa 16(%rdi), %xmm0
|
|
|
|
; AVX1-NEXT: vinsertf128 $1, %xmm0, %ymm1, %ymm0
|
|
|
|
; AVX1-NEXT: vmovntdqa 32(%rdi), %xmm2
|
2017-11-29 01:15:09 +08:00
|
|
|
; AVX1-NEXT: # implicit-def: %ymm1
|
2017-06-06 00:02:01 +08:00
|
|
|
; AVX1-NEXT: vmovaps %xmm2, %xmm1
|
|
|
|
; AVX1-NEXT: vmovntdqa 48(%rdi), %xmm2
|
|
|
|
; AVX1-NEXT: vinsertf128 $1, %xmm2, %ymm1, %ymm1
|
2016-06-07 23:12:47 +08:00
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-LABEL: test_load_nt16xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; AVX2-NEXT: vmovntdqa (%rdi), %ymm0
|
|
|
|
; AVX2-NEXT: vmovntdqa 32(%rdi), %ymm1
|
|
|
|
; AVX2-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512-LABEL: test_load_nt16xi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; AVX512-NEXT: vmovntdqa (%rdi), %zmm0
|
|
|
|
; AVX512-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = load <16 x i32>, <16 x i32>* %ptr, align 64, !nontemporal !1
|
|
|
|
ret <16 x i32> %0
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i64> @test_load_nt8xi64(<8 x i64>* nocapture %ptr) {
|
|
|
|
; SSE2-LABEL: test_load_nt8xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; SSE2-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE2-NEXT: movaps 16(%rdi), %xmm1
|
|
|
|
; SSE2-NEXT: movaps 32(%rdi), %xmm2
|
|
|
|
; SSE2-NEXT: movaps 48(%rdi), %xmm3
|
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE4A-LABEL: test_load_nt8xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE4A: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; SSE4A-NEXT: movaps (%rdi), %xmm0
|
|
|
|
; SSE4A-NEXT: movaps 16(%rdi), %xmm1
|
|
|
|
; SSE4A-NEXT: movaps 32(%rdi), %xmm2
|
|
|
|
; SSE4A-NEXT: movaps 48(%rdi), %xmm3
|
|
|
|
; SSE4A-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: test_load_nt8xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; SSE41-NEXT: movntdqa (%rdi), %xmm0
|
|
|
|
; SSE41-NEXT: movntdqa 16(%rdi), %xmm1
|
|
|
|
; SSE41-NEXT: movntdqa 32(%rdi), %xmm2
|
|
|
|
; SSE41-NEXT: movntdqa 48(%rdi), %xmm3
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX1-LABEL: test_load_nt8xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0: # %entry
|
2017-06-06 00:02:01 +08:00
|
|
|
; AVX1-NEXT: vmovntdqa (%rdi), %xmm0
|
2017-11-29 01:15:09 +08:00
|
|
|
; AVX1-NEXT: # implicit-def: %ymm1
|
2017-06-06 00:02:01 +08:00
|
|
|
; AVX1-NEXT: vmovaps %xmm0, %xmm1
|
|
|
|
; AVX1-NEXT: vmovntdqa 16(%rdi), %xmm0
|
|
|
|
; AVX1-NEXT: vinsertf128 $1, %xmm0, %ymm1, %ymm0
|
|
|
|
; AVX1-NEXT: vmovntdqa 32(%rdi), %xmm2
|
2017-11-29 01:15:09 +08:00
|
|
|
; AVX1-NEXT: # implicit-def: %ymm1
|
2017-06-06 00:02:01 +08:00
|
|
|
; AVX1-NEXT: vmovaps %xmm2, %xmm1
|
|
|
|
; AVX1-NEXT: vmovntdqa 48(%rdi), %xmm2
|
|
|
|
; AVX1-NEXT: vinsertf128 $1, %xmm2, %ymm1, %ymm1
|
2016-06-07 23:12:47 +08:00
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-LABEL: test_load_nt8xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; AVX2-NEXT: vmovntdqa (%rdi), %ymm0
|
|
|
|
; AVX2-NEXT: vmovntdqa 32(%rdi), %ymm1
|
|
|
|
; AVX2-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512-LABEL: test_load_nt8xi64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512: # %bb.0: # %entry
|
2016-06-07 23:12:47 +08:00
|
|
|
; AVX512-NEXT: vmovntdqa (%rdi), %zmm0
|
|
|
|
; AVX512-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = load <8 x i64>, <8 x i64>* %ptr, align 64, !nontemporal !1
|
|
|
|
ret <8 x i64> %0
|
|
|
|
}
|
2016-06-02 21:51:50 +08:00
|
|
|
|
2015-10-14 18:03:13 +08:00
|
|
|
!1 = !{i32 1}
|