diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-10 21:22:52 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-04-10 21:23:04 +0000 |
commit | 31195f0bdca6ee2a5e72d07edf13e1d81206d949 (patch) | |
tree | 1b2c9792582e12f5af0b1512e3094425f0dc0df9 /test/Transforms/SLPVectorizer/X86/saxpy.ll | |
parent | c75239e6119d0f9a74c57099d91cbc9bde56bf33 (diff) | |
parent | 4c5e43da7792f75567b693105cc53e3f1992ad98 (diff) | |
download | external_llvm-31195f0bdca6ee2a5e72d07edf13e1d81206d949.zip external_llvm-31195f0bdca6ee2a5e72d07edf13e1d81206d949.tar.gz external_llvm-31195f0bdca6ee2a5e72d07edf13e1d81206d949.tar.bz2 |
Merge "Update aosp/master llvm for rebase to r233350"
Diffstat (limited to 'test/Transforms/SLPVectorizer/X86/saxpy.ll')
-rw-r--r-- | test/Transforms/SLPVectorizer/X86/saxpy.ll | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/test/Transforms/SLPVectorizer/X86/saxpy.ll b/test/Transforms/SLPVectorizer/X86/saxpy.ll index 4b39d46..a9ca093 100644 --- a/test/Transforms/SLPVectorizer/X86/saxpy.ll +++ b/test/Transforms/SLPVectorizer/X86/saxpy.ll @@ -9,35 +9,35 @@ target triple = "x86_64-apple-macosx10.8.0" ;CHECK: ret define void @SAXPY(i32* noalias nocapture %x, i32* noalias nocapture %y, i32 %a, i64 %i) { - %1 = getelementptr inbounds i32* %x, i64 %i - %2 = load i32* %1, align 4 + %1 = getelementptr inbounds i32, i32* %x, i64 %i + %2 = load i32, i32* %1, align 4 %3 = mul nsw i32 %2, %a - %4 = getelementptr inbounds i32* %y, i64 %i - %5 = load i32* %4, align 4 + %4 = getelementptr inbounds i32, i32* %y, i64 %i + %5 = load i32, i32* %4, align 4 %6 = add nsw i32 %3, %5 store i32 %6, i32* %1, align 4 %7 = add i64 %i, 1 - %8 = getelementptr inbounds i32* %x, i64 %7 - %9 = load i32* %8, align 4 + %8 = getelementptr inbounds i32, i32* %x, i64 %7 + %9 = load i32, i32* %8, align 4 %10 = mul nsw i32 %9, %a - %11 = getelementptr inbounds i32* %y, i64 %7 - %12 = load i32* %11, align 4 + %11 = getelementptr inbounds i32, i32* %y, i64 %7 + %12 = load i32, i32* %11, align 4 %13 = add nsw i32 %10, %12 store i32 %13, i32* %8, align 4 %14 = add i64 %i, 2 - %15 = getelementptr inbounds i32* %x, i64 %14 - %16 = load i32* %15, align 4 + %15 = getelementptr inbounds i32, i32* %x, i64 %14 + %16 = load i32, i32* %15, align 4 %17 = mul nsw i32 %16, %a - %18 = getelementptr inbounds i32* %y, i64 %14 - %19 = load i32* %18, align 4 + %18 = getelementptr inbounds i32, i32* %y, i64 %14 + %19 = load i32, i32* %18, align 4 %20 = add nsw i32 %17, %19 store i32 %20, i32* %15, align 4 %21 = add i64 %i, 3 - %22 = getelementptr inbounds i32* %x, i64 %21 - %23 = load i32* %22, align 4 + %22 = getelementptr inbounds i32, i32* %x, i64 %21 + %23 = load i32, i32* %22, align 4 %24 = mul nsw i32 %23, %a - %25 = getelementptr inbounds i32* %y, i64 %21 - %26 = load i32* %25, align 4 + %25 = getelementptr inbounds i32, i32* %y, i64 %21 + %26 = load i32, i32* %25, align 4 %27 = add nsw i32 %24, %26 store i32 %27, i32* %22, align 4 ret void @@ -46,15 +46,15 @@ define void @SAXPY(i32* noalias nocapture %x, i32* noalias nocapture %y, i32 %a, ; Make sure we don't crash on this one. define void @SAXPY_crash(i32* noalias nocapture %x, i32* noalias nocapture %y, i64 %i) { %1 = add i64 %i, 1 - %2 = getelementptr inbounds i32* %x, i64 %1 - %3 = getelementptr inbounds i32* %y, i64 %1 - %4 = load i32* %3, align 4 + %2 = getelementptr inbounds i32, i32* %x, i64 %1 + %3 = getelementptr inbounds i32, i32* %y, i64 %1 + %4 = load i32, i32* %3, align 4 %5 = add nsw i32 undef, %4 store i32 %5, i32* %2, align 4 %6 = add i64 %i, 2 - %7 = getelementptr inbounds i32* %x, i64 %6 - %8 = getelementptr inbounds i32* %y, i64 %6 - %9 = load i32* %8, align 4 + %7 = getelementptr inbounds i32, i32* %x, i64 %6 + %8 = getelementptr inbounds i32, i32* %y, i64 %6 + %9 = load i32, i32* %8, align 4 %10 = add nsw i32 undef, %9 store i32 %10, i32* %7, align 4 ret void |