1*9880d681SAndroid Build Coastguard Worker; RUN: llc -O=2 < %s -mtriple=powerpc-netbsd | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: bl __lshrti3 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker; ModuleID = 'lshrti3-ppc32.c' 6*9880d681SAndroid Build Coastguard Workertarget datalayout = "E-m:e-p:32:32-i64:64-n32" 7*9880d681SAndroid Build Coastguard Workertarget triple = "powerpc--netbsd" 8*9880d681SAndroid Build Coastguard Worker 9*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind uwtable 10*9880d681SAndroid Build Coastguard Workerdefine i32 @fn1() #0 { 11*9880d681SAndroid Build Coastguard Workerentry: 12*9880d681SAndroid Build Coastguard Worker %.promoted = load i72, i72* inttoptr (i32 1 to i72*), align 4 13*9880d681SAndroid Build Coastguard Worker br label %while.cond 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard Workerwhile.cond: ; preds = %while.cond, %entry 16*9880d681SAndroid Build Coastguard Worker %bf.set3 = phi i72 [ %bf.set, %while.cond ], [ %.promoted, %entry ] 17*9880d681SAndroid Build Coastguard Worker %bf.lshr = lshr i72 %bf.set3, 40 18*9880d681SAndroid Build Coastguard Worker %bf.lshr.tr = trunc i72 %bf.lshr to i32 19*9880d681SAndroid Build Coastguard Worker %bf.cast = and i32 %bf.lshr.tr, 65535 20*9880d681SAndroid Build Coastguard Worker %dec = add nsw i32 %bf.lshr.tr, 65535 21*9880d681SAndroid Build Coastguard Worker %0 = zext i32 %dec to i72 22*9880d681SAndroid Build Coastguard Worker %bf.value = shl nuw i72 %0, 40 23*9880d681SAndroid Build Coastguard Worker %bf.shl = and i72 %bf.value, 72056494526300160 24*9880d681SAndroid Build Coastguard Worker %bf.clear2 = and i72 %bf.set3, -72056494526300161 25*9880d681SAndroid Build Coastguard Worker %bf.set = or i72 %bf.shl, %bf.clear2 26*9880d681SAndroid Build Coastguard Worker %tobool = icmp eq i32 %bf.cast, 0 27*9880d681SAndroid Build Coastguard Worker br i1 %tobool, label %while.end, label %while.cond 28*9880d681SAndroid Build Coastguard Worker 29*9880d681SAndroid Build Coastguard Workerwhile.end: ; preds = %while.cond 30*9880d681SAndroid Build Coastguard Worker %bf.set.lcssa = phi i72 [ %bf.set, %while.cond ] 31*9880d681SAndroid Build Coastguard Worker store i72 %bf.set.lcssa, i72* inttoptr (i32 1 to i72*), align 4 32*9880d681SAndroid Build Coastguard Worker ret i32 undef 33*9880d681SAndroid Build Coastguard Worker} 34*9880d681SAndroid Build Coastguard Worker 35*9880d681SAndroid Build Coastguard Workerattributes #0 = { nounwind uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } 36*9880d681SAndroid Build Coastguard Worker 37*9880d681SAndroid Build Coastguard Worker!llvm.ident = !{!0} 38*9880d681SAndroid Build Coastguard Worker 39*9880d681SAndroid Build Coastguard Worker!0 = !{!"clang version 3.5.0 (213754)"} 40