diff options
author | Nadav Rotem <nrotem@apple.com> | 2013-01-09 01:29:07 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2013-01-09 01:29:07 +0000 |
commit | df8c22a10427f2831a009b806f7050dff29f60e2 (patch) | |
tree | 4c29233db109ed752508d3d67a6f81bce7915070 /test/Transforms/LoopVectorize | |
parent | 3c90b3d5fd8349b3790171d8706afa7e263c7ea6 (diff) |
ARM Cost Model: Add a basic vectorization unrolling test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171931 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LoopVectorize')
-rw-r--r-- | test/Transforms/LoopVectorize/ARM/arm-unroll.ll (renamed from test/Transforms/LoopVectorize/ARM/sanity.ll) | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/test/Transforms/LoopVectorize/ARM/sanity.ll b/test/Transforms/LoopVectorize/ARM/arm-unroll.ll index 11c28a8c0b..c8d307f5d4 100644 --- a/test/Transforms/LoopVectorize/ARM/sanity.ll +++ b/test/Transforms/LoopVectorize/ARM/arm-unroll.ll @@ -1,10 +1,17 @@ -; RUN: opt < %s -loop-vectorize -mtriple=thumbv7-apple-ios3.0.0 -S +; RUN: opt < %s -loop-vectorize -mtriple=thumbv7-apple-ios3.0.0 -S | FileCheck %s +; RUN: opt < %s -loop-vectorize -mtriple=thumbv7-apple-ios3.0.0 -mcpu=swift -S | FileCheck %s --check-prefix=SWIFT target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:32:64-v128:32:128-a0:0:32-n32-S32" target triple = "thumbv7-apple-ios3.0.0" -; Make sure that we are not crashing on ARM. - +;CHECK: @foo +;CHECK: load <4 x i32> +;CHECK-NOT: load <4 x i32> +;CHECK: ret +;SWIFT: @foo +;SWIFT: load <4 x i32> +;SWIFT: load <4 x i32> +;SWIFT: ret define i32 @foo(i32* nocapture %A, i32 %n) nounwind readonly ssp { %1 = icmp sgt i32 %n, 0 br i1 %1, label %.lr.ph, label %._crit_edge |