xref: /aosp_15_r20/external/llvm/test/CodeGen/Hexagon/postinc-offset.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -enable-aa-sched-mi -march=hexagon -mcpu=hexagonv5 -rdf-opt=0 \
2*9880d681SAndroid Build Coastguard Worker; RUN:      < %s | FileCheck %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker; CHECK: {
5*9880d681SAndroid Build Coastguard Worker; CHECK: ={{ *}}memd([[REG0:(r[0-9]+)]]{{ *}}++{{ *}}#8)
6*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: memw([[REG0]]{{ *}}+{{ *}}#0){{ *}}=
7*9880d681SAndroid Build Coastguard Worker; CHECK: }
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Workerdefine void @main() #0 {
10*9880d681SAndroid Build Coastguard Workercond.end.6:
11*9880d681SAndroid Build Coastguard Worker  store i32 -1, i32* undef, align 8, !tbaa !0
12*9880d681SAndroid Build Coastguard Worker  br label %polly.stmt.for.body.i
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Workerif.then:
15*9880d681SAndroid Build Coastguard Worker  unreachable
16*9880d681SAndroid Build Coastguard Worker
17*9880d681SAndroid Build Coastguard Workerif.end:
18*9880d681SAndroid Build Coastguard Worker  ret void
19*9880d681SAndroid Build Coastguard Worker
20*9880d681SAndroid Build Coastguard Workerpolly.stmt.for.body.i24:
21*9880d681SAndroid Build Coastguard Worker  %0 = extractelement <2 x i32> %add.ip_vec, i32 1
22*9880d681SAndroid Build Coastguard Worker  br i1 undef, label %if.end, label %if.then
23*9880d681SAndroid Build Coastguard Worker
24*9880d681SAndroid Build Coastguard Workerpolly.stmt.for.body.i:
25*9880d681SAndroid Build Coastguard Worker  %add.ip_vec30 = phi <2 x i32> [ %add.ip_vec, %polly.stmt.for.body.i ], [ zeroinitializer, %cond.end.6 ]
26*9880d681SAndroid Build Coastguard Worker  %scevgep.phi = phi i32* [ %scevgep.inc, %polly.stmt.for.body.i ], [ undef, %cond.end.6 ]
27*9880d681SAndroid Build Coastguard Worker  %polly.indvar = phi i32 [ %polly.indvar_next, %polly.stmt.for.body.i ], [ 0, %cond.end.6 ]
28*9880d681SAndroid Build Coastguard Worker  %vector_ptr = bitcast i32* %scevgep.phi to <2 x i32>*
29*9880d681SAndroid Build Coastguard Worker  %_p_vec_full = load <2 x i32>, <2 x i32>* %vector_ptr, align 8
30*9880d681SAndroid Build Coastguard Worker  %add.ip_vec = add <2 x i32> %_p_vec_full, %add.ip_vec30
31*9880d681SAndroid Build Coastguard Worker  %polly.indvar_next = add nsw i32 %polly.indvar, 2
32*9880d681SAndroid Build Coastguard Worker  %polly.loop_cond = icmp slt i32 %polly.indvar, 4
33*9880d681SAndroid Build Coastguard Worker  %scevgep.inc = getelementptr i32, i32* %scevgep.phi, i32 2
34*9880d681SAndroid Build Coastguard Worker  br i1 %polly.loop_cond, label %polly.stmt.for.body.i, label %polly.stmt.for.body.i24
35*9880d681SAndroid Build Coastguard Worker}
36*9880d681SAndroid Build Coastguard Worker
37*9880d681SAndroid Build Coastguard Workerattributes #0 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "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" }
38*9880d681SAndroid Build Coastguard Worker
39*9880d681SAndroid Build Coastguard Worker!0 = !{!"int", !1}
40*9880d681SAndroid Build Coastguard Worker!1 = !{!"omnipotent char", !2}
41*9880d681SAndroid Build Coastguard Worker!2 = !{!"Simple C/C++ TBAA"}
42