1*2e14900dSBjorn Pettersson; RUN: opt < %s -passes=loop-vectorize -force-vector-width=4 -S | FileCheck %s 2cee313d2SEric Christopher 3cee313d2SEric Christophertarget datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" 4cee313d2SEric Christopher 5cee313d2SEric Christopher; CHECK-LABEL: @lshr_exact( 6cee313d2SEric Christopher; CHECK: lshr exact <4 x i32> 7cee313d2SEric Christopherdefine void @lshr_exact(i32* %x) { 8cee313d2SEric Christopherentry: 9cee313d2SEric Christopher br label %for.body 10cee313d2SEric Christopher 11cee313d2SEric Christopherfor.body: 12cee313d2SEric Christopher %iv = phi i64 [ 0, %entry ], [ %iv.next, %for.body ] 13cee313d2SEric Christopher %arrayidx = getelementptr inbounds i32, i32* %x, i64 %iv 14cee313d2SEric Christopher %0 = load i32, i32* %arrayidx, align 4 15cee313d2SEric Christopher %conv1 = lshr exact i32 %0, 1 16cee313d2SEric Christopher store i32 %conv1, i32* %arrayidx, align 4 17cee313d2SEric Christopher %iv.next = add nuw nsw i64 %iv, 1 18cee313d2SEric Christopher %exitcond = icmp eq i64 %iv.next, 256 19cee313d2SEric Christopher br i1 %exitcond, label %for.end, label %for.body 20cee313d2SEric Christopher 21cee313d2SEric Christopherfor.end: 22cee313d2SEric Christopher ret void 23cee313d2SEric Christopher} 24