brintos

brintos / llvm-project-archived public Read only

0
0
Text · 851 B · 607532b Raw
24 lines · plain
1; RUN: llc -mtriple=hexagon -disable-cgp-delete-phis < %s | FileCheck %s2; REQUIRES: asserts3 4; Check that this testcase compiles successfully.5; CHECK: vextract6 7target 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"8target triple = "hexagon-unknown--elf"9 10define void @fred() local_unnamed_addr #0 {11b0:12  %v1 = load <64 x i8>, ptr undef, align 6413  %v2 = insertelement <64 x i8> %v1, i8 0, i32 014  br label %b315 16b3:                                               ; preds = %b3, %b017  %v4 = phi <64 x i8> [ %v2, %b0 ], [ %v6, %b3 ]18  %v5 = extractelement <64 x i8> %v4, i32 019  %v6 = insertelement <64 x i8> %v4, i8 undef, i32 020  br label %b321}22 23attributes #0 = { "target-cpu"="hexagonv60" "target-features"="+hvx,+hvx-length64b" }24