Home | History | Annotate | Download | only in PowerPC
      1 ; RUN: opt -S -mtriple=powerpc64-linux-gnu -mcpu=pwr8 -mattr=+vsx -slp-vectorizer < %s | FileCheck %s
      2 
      3 %struct.A = type { i8*, i8* }
      4 
      5 define i64 @foo(%struct.A* nocapture readonly %this) {
      6 entry:
      7   %end.i = getelementptr inbounds %struct.A, %struct.A* %this, i64 0, i32 1
      8   %0 = bitcast i8** %end.i to i64*
      9   %1 = load i64, i64* %0, align 8
     10   %2 = bitcast %struct.A* %this to i64*
     11   %3 = load i64, i64* %2, align 8
     12   %sub.ptr.sub.i = sub i64 %1, %3
     13   %cmp = icmp sgt i64 %sub.ptr.sub.i, 9
     14   br i1 %cmp, label %return, label %lor.lhs.false
     15 
     16 lor.lhs.false:
     17   %4 = inttoptr i64 %3 to i8*
     18   %5 = inttoptr i64 %1 to i8*
     19   %cmp2 = icmp ugt i8* %5, %4
     20   %. = select i1 %cmp2, i64 2, i64 -1
     21   ret i64 %.
     22 
     23 return:
     24   ret i64 2
     25 }
     26 
     27 ; CHECK: load i64
     28 ; CHECK-NOT: load <2 x i64>
     29 ; CHECK-NOT: extractelement
     30