[llvm] r363852 - [x86] add test for unaligned 32-byte load/store splitting; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 19 11:06:59 PDT 2019
Author: spatel
Date: Wed Jun 19 11:06:59 2019
New Revision: 363852
URL: http://llvm.org/viewvc/llvm-project?rev=363852&view=rev
Log:
[x86] add test for unaligned 32-byte load/store splitting; NFC
Modified:
llvm/trunk/test/CodeGen/X86/sandybridge-loads.ll
Modified: llvm/trunk/test/CodeGen/X86/sandybridge-loads.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/sandybridge-loads.ll?rev=363852&r1=363851&r2=363852&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/sandybridge-loads.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sandybridge-loads.ll Wed Jun 19 11:06:59 2019
@@ -1,7 +1,7 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=corei7-avx | FileCheck %s
-define void @wideloads(<8 x float>* %a, <8 x float>* %b, <8 x float>* %c) nounwind uwtable noinline ssp {
+define void @wideloads(<8 x float>* %a, <8 x float>* %b, <8 x float>* %c) nounwind {
; CHECK-LABEL: wideloads:
; CHECK: # %bb.0:
; CHECK-NEXT: vmovaps (%rdi), %xmm0
@@ -26,7 +26,7 @@ define void @wideloads(<8 x float>* %a,
ret void
}
-define void @widestores(<8 x float>* %a, <8 x float>* %b, <8 x float>* %c) nounwind uwtable noinline ssp {
+define void @widestores(<8 x float>* %a, <8 x float>* %b, <8 x float>* %c) nounwind {
; CHECK-LABEL: widestores:
; CHECK: # %bb.0:
; CHECK-NEXT: vmovaps (%rdi), %ymm0
@@ -44,3 +44,20 @@ define void @widestores(<8 x float>* %a,
ret void
}
+define void @widestores_unaligned_load(<8 x float>* %a, <8 x float>* %b, <8 x float>* %c) nounwind {
+; CHECK-LABEL: widestores_unaligned_load:
+; CHECK: # %bb.0:
+; CHECK-NEXT: vmovaps (%rdi), %ymm0
+; CHECK-NEXT: vmovaps (%rsi), %xmm1
+; CHECK-NEXT: vmovaps 16(%rsi), %xmm2
+; CHECK-NEXT: vmovaps %ymm0, (%rsi)
+; CHECK-NEXT: vmovaps %xmm2, 16(%rdi)
+; CHECK-NEXT: vmovaps %xmm1, (%rdi)
+; CHECK-NEXT: vzeroupper
+; CHECK-NEXT: retq
+ %v0 = load <8 x float>, <8 x float>* %a, align 32 ; <--- aligned
+ %v1 = load <8 x float>, <8 x float>* %b, align 16 ; <--- unaligned
+ store <8 x float> %v0, <8 x float>* %b, align 32 ; <--- aligned
+ store <8 x float> %v1, <8 x float>* %a, align 16 ; <--- unaligned
+ ret void
+}
More information about the llvm-commits
mailing list