1*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=hexagon < %s | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker; CHECK: r{{[0-9]+}} = add(r{{[0-9]+}}.{{L|l}}, r{{[0-9]+}}.{{H|h}}) 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-p:32:32:32-i64:64:64-i32:32:32-i16:16:16-i1:32:32-f64:64:64-f32:32:32-v64:64:64-v32:32:32-a0:0-n16:32" 5*9880d681SAndroid Build Coastguard Workertarget triple = "hexagon-unknown-none" 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Worker%struct.aDataType = type { i16, i16, i16, i16, i16, i16*, i16*, i16*, i8*, i16*, i16*, i16*, i8* } 8*9880d681SAndroid Build Coastguard Worker 9*9880d681SAndroid Build Coastguard Workerdefine i8* @a_get_score(%struct.aDataType* nocapture %pData, i16 signext %gmmModelIndex, i16* nocapture %pGmmScoreL16Q4) #0 { 10*9880d681SAndroid Build Coastguard Workerentry: 11*9880d681SAndroid Build Coastguard Worker %numSubVector = getelementptr inbounds %struct.aDataType, %struct.aDataType* %pData, i32 0, i32 3 12*9880d681SAndroid Build Coastguard Worker %0 = load i16, i16* %numSubVector, align 2, !tbaa !0 13*9880d681SAndroid Build Coastguard Worker %and = and i16 %0, -4 14*9880d681SAndroid Build Coastguard Worker %b = getelementptr inbounds %struct.aDataType, %struct.aDataType* %pData, i32 0, i32 8 15*9880d681SAndroid Build Coastguard Worker %1 = load i8*, i8** %b, align 4, !tbaa !3 16*9880d681SAndroid Build Coastguard Worker %conv3 = sext i16 %and to i32 17*9880d681SAndroid Build Coastguard Worker %cmp21 = icmp sgt i16 %and, 0 18*9880d681SAndroid Build Coastguard Worker br i1 %cmp21, label %for.inc.preheader, label %for.end 19*9880d681SAndroid Build Coastguard Worker 20*9880d681SAndroid Build Coastguard Workerfor.inc.preheader: ; preds = %entry 21*9880d681SAndroid Build Coastguard Worker br label %for.inc 22*9880d681SAndroid Build Coastguard Worker 23*9880d681SAndroid Build Coastguard Workerfor.inc: ; preds = %for.inc.preheader, %for.inc 24*9880d681SAndroid Build Coastguard Worker %j.022 = phi i32 [ %phitmp, %for.inc ], [ 0, %for.inc.preheader ] 25*9880d681SAndroid Build Coastguard Worker %add13 = mul i32 %j.022, 65536 26*9880d681SAndroid Build Coastguard Worker %sext = add i32 %add13, 262144 27*9880d681SAndroid Build Coastguard Worker %phitmp = ashr exact i32 %sext, 16 28*9880d681SAndroid Build Coastguard Worker %cmp = icmp slt i32 %phitmp, %conv3 29*9880d681SAndroid Build Coastguard Worker br i1 %cmp, label %for.inc, label %for.end.loopexit 30*9880d681SAndroid Build Coastguard Worker 31*9880d681SAndroid Build Coastguard Workerfor.end.loopexit: ; preds = %for.inc 32*9880d681SAndroid Build Coastguard Worker br label %for.end 33*9880d681SAndroid Build Coastguard Worker 34*9880d681SAndroid Build Coastguard Workerfor.end: ; preds = %for.end.loopexit, %entry 35*9880d681SAndroid Build Coastguard Worker ret i8* %1 36*9880d681SAndroid Build Coastguard Worker} 37*9880d681SAndroid Build Coastguard Worker 38*9880d681SAndroid Build Coastguard Workerattributes #0 = { nounwind readonly "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" } 39*9880d681SAndroid Build Coastguard Worker 40*9880d681SAndroid Build Coastguard Worker!0 = !{!"short", !1} 41*9880d681SAndroid Build Coastguard Worker!1 = !{!"omnipotent char", !2} 42*9880d681SAndroid Build Coastguard Worker!2 = !{!"Simple C/C++ TBAA"} 43*9880d681SAndroid Build Coastguard Worker!3 = !{!"any pointer", !1} 44