[llvm] r303178 - Make test target-specific
Matthew Simpson via llvm-commits
llvm-commits at lists.llvm.org
Tue May 16 08:33:22 PDT 2017
Author: mssimpso
Date: Tue May 16 10:33:22 2017
New Revision: 303178
URL: http://llvm.org/viewvc/llvm-project?rev=303178&view=rev
Log:
Make test target-specific
Added:
llvm/trunk/test/Transforms/LoopVectorize/AArch64/interleave_count.ll
- copied, changed from r303176, llvm/trunk/test/Transforms/LoopVectorize/interleave_count.ll
Removed:
llvm/trunk/test/Transforms/LoopVectorize/interleave_count.ll
Copied: llvm/trunk/test/Transforms/LoopVectorize/AArch64/interleave_count.ll (from r303176, llvm/trunk/test/Transforms/LoopVectorize/interleave_count.ll)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LoopVectorize/AArch64/interleave_count.ll?p2=llvm/trunk/test/Transforms/LoopVectorize/AArch64/interleave_count.ll&p1=llvm/trunk/test/Transforms/LoopVectorize/interleave_count.ll&r1=303176&r2=303178&rev=303178&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LoopVectorize/interleave_count.ll (original)
+++ llvm/trunk/test/Transforms/LoopVectorize/AArch64/interleave_count.ll Tue May 16 10:33:22 2017
@@ -1,5 +1,9 @@
+; REQUIRES: asserts
; RUN: opt < %s -loop-vectorize -force-target-instruction-cost=0 -force-vector-width=2 -force-vector-interleave=1 -instcombine -S | FileCheck %s
+target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
+target triple = "aarch64--linux-gnu"
+
; CHECK-LABEL: @copy(
; CHECK: vector.body:
; CHECK-NEXT: [[INDEX:%.*]] = phi i64 [ 0, %vector.ph ], [ [[INDEX_NEXT:%.*]], %vector.body ]
Removed: llvm/trunk/test/Transforms/LoopVectorize/interleave_count.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LoopVectorize/interleave_count.ll?rev=303177&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/LoopVectorize/interleave_count.ll (original)
+++ llvm/trunk/test/Transforms/LoopVectorize/interleave_count.ll (removed)
@@ -1,31 +0,0 @@
-; RUN: opt < %s -loop-vectorize -force-target-instruction-cost=0 -force-vector-width=2 -force-vector-interleave=1 -instcombine -S | FileCheck %s
-
-; CHECK-LABEL: @copy(
-; CHECK: vector.body:
-; CHECK-NEXT: [[INDEX:%.*]] = phi i64 [ 0, %vector.ph ], [ [[INDEX_NEXT:%.*]], %vector.body ]
-; CHECK-NEXT: [[TMP2:%.*]] = getelementptr inbounds i64, i64* %a, i64 [[INDEX]]
-; CHECK-NEXT: [[TMP3:%.*]] = getelementptr inbounds i64, i64* %b, i64 [[INDEX]]
-; CHECK-NEXT: [[TMP4:%.*]] = bitcast i64* [[TMP3]] to <2 x i64>*
-; CHECK-NEXT: [[WIDE_LOAD:%.*]] = load <2 x i64>, <2 x i64>* [[TMP4]], align 8
-; CHECK-NEXT: [[TMP5:%.*]] = bitcast i64* [[TMP2]] to <2 x i64>*
-; CHECK-NEXT: store <2 x i64> [[WIDE_LOAD]], <2 x i64>* [[TMP5]], align 8
-; CHECK-NEXT: [[INDEX_NEXT]] = add i64 [[INDEX]], 2
-; CHECK: br i1 {{.*}}, label %middle.block, label %vector.body
-;
-define void @copy(i64* %a, i64* %b, i64 %n) {
-entry:
- br label %for.body
-
-for.body:
- %i = phi i64 [ %i.next, %for.body ], [ 0, %entry ]
- %tmp0 = getelementptr inbounds i64, i64* %a, i64 %i
- %tmp1 = getelementptr inbounds i64, i64* %b, i64 %i
- %tmp3 = load i64, i64* %tmp1, align 8
- store i64 %tmp3, i64* %tmp0, align 8
- %i.next = add nuw nsw i64 %i, 1
- %cond = icmp slt i64 %i.next, %n
- br i1 %cond, label %for.body, label %for.end
-
-for.end:
- ret void
-}
More information about the llvm-commits
mailing list