• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -march=hexagon -mcpu=hexagonv5 -disable-hsdr < %s | FileCheck %s
2
3; Check that the parsing succeeded.
4; CHECK: r{{[0-9]+:[0-9]+}} = xor(r{{[0-9]+:[0-9]+}}, r{{[0-9]+:[0-9]+}})
5target 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"
6target triple = "hexagon"
7
8@window_size = global i32 65536, align 4
9@prev = external global [0 x i16], align 8
10@block_start = common global i32 0, align 4
11@prev_length = common global i32 0, align 4
12@strstart = common global i32 0, align 4
13@match_start = common global i32 0, align 4
14@max_chain_length = common global i32 0, align 4
15@good_match = common global i32 0, align 4
16
17define void @fill_window() #0 {
18entry:
19  br label %polly.loop_body
20
21polly.loop_after:                                 ; preds = %polly.loop_body
22  ret void
23
24polly.loop_body:                                  ; preds = %entry, %polly.loop_body
25  %polly.loopiv36 = phi i32 [ 0, %entry ], [ %polly.next_loopiv, %polly.loop_body ]
26  %polly.next_loopiv = add nsw i32 %polly.loopiv36, 4
27  %p_arrayidx4 = getelementptr [0 x i16], [0 x i16]* @prev, i32 0, i32 %polly.loopiv36
28  %vector_ptr = bitcast i16* %p_arrayidx4 to <4 x i16>*
29  %_p_vec_full = load <4 x i16>, <4 x i16>* %vector_ptr, align 2
30  %cmp1p_vicmp = icmp slt <4 x i16> %_p_vec_full, zeroinitializer
31  %subp_vec = xor <4 x i16> %_p_vec_full, <i16 -32768, i16 -32768, i16 -32768, i16 -32768>
32  %sel1p_vsel = select <4 x i1> %cmp1p_vicmp, <4 x i16> %subp_vec, <4 x i16> zeroinitializer
33  store <4 x i16> %sel1p_vsel, <4 x i16>* %vector_ptr, align 2
34  %0 = icmp slt i32 %polly.next_loopiv, 32768
35  br i1 %0, label %polly.loop_body, label %polly.loop_after
36}
37
38attributes #0 = { nounwind "fp-contract-model"="standard" "no-frame-pointer-elim-non-leaf" "realign-stack" "relocation-model"="static" "ssp-buffers-size"="8" }
39