brintos

brintos / llvm-project-archived public Read only

0
0
Text · 984 B · 6d5418f Raw
32 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2 3; Check for a successful compilation.4; CHECK: jumpr r315 6target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048"7target triple = "hexagon"8 9define void @fred(ptr %a0, ptr %a1) #0 {10b0:11  %v1 = icmp sgt <8 x i32> undef, undef12  %v2 = extractelement <8 x i1> %v1, i32 413  %v3 = select i1 %v2, i32 0, i32 undef14  %v4 = add nsw i32 %v3, 015  %v5 = add nsw i32 0, %v416  %v6 = extractelement <8 x i1> %v1, i32 617  %v7 = select i1 %v6, i32 0, i32 undef18  %v8 = add nsw i32 %v7, %v519  %v9 = add nsw i32 0, %v820  %v10 = add nsw i32 0, %v921  %v11 = load i32, ptr %a0, align 422  %v12 = mul nsw i32 %v11, %v1023  %v13 = add nsw i32 %v12, 1638424  %v14 = ashr i32 %v13, 1525  %v15 = select i1 undef, i32 %v14, i32 25526  %v16 = trunc i32 %v15 to i827  store i8 %v16, ptr %a1, align 128  ret void29}30 31attributes #0 = { norecurse nounwind }32