brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.9 KiB · 462172c Raw
99 lines · plain
1; RUN: llc -mtriple=hexagon -O3 -verify-machineinstrs < %s | FileCheck %s2;3; Make sure that this testcase passes the verifier.4; CHECK: call f15 6target triple = "hexagon"7 8%s.0 = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [2 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i64, i32, i32, i64, i32, i32, i64, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }9 10@g0 = external global %s.0, align 811@g1 = external hidden unnamed_addr constant [3 x i8], align 112 13; Function Attrs: nounwind14define void @f0() local_unnamed_addr #0 {15b0:16  br label %b117 18b1:                                               ; preds = %b019  switch i8 undef, label %b3 [20    i8 35, label %b221    i8 10, label %b222  ]23 24b2:                                               ; preds = %b1, %b125  unreachable26 27b3:                                               ; preds = %b128  br label %b429 30b4:                                               ; preds = %b331  switch i8 undef, label %b6 [32    i8 35, label %b533    i8 10, label %b534  ]35 36b5:                                               ; preds = %b4, %b437  unreachable38 39b6:                                               ; preds = %b440  call void (ptr, ptr, ...) @f1(ptr nonnull undef, ptr @g1, ptr getelementptr inbounds (%s.0, ptr @g0, i32 0, i32 45)) #041  br label %b742 43b7:                                               ; preds = %b644  switch i8 undef, label %b9 [45    i8 35, label %b846    i8 10, label %b847  ]48 49b8:                                               ; preds = %b7, %b750  unreachable51 52b9:                                               ; preds = %b753  br label %b1054 55b10:                                              ; preds = %b956  switch i8 undef, label %b12 [57    i8 35, label %b1158    i8 10, label %b1159  ]60 61b11:                                              ; preds = %b10, %b1062  unreachable63 64b12:                                              ; preds = %b1065  br label %b1366 67b13:                                              ; preds = %b1268  switch i8 undef, label %b14 [69    i8 35, label %b1570    i8 10, label %b1571  ]72 73b14:                                              ; preds = %b1374  br label %b1675 76b15:                                              ; preds = %b13, %b1377  unreachable78 79b16:                                              ; preds = %b17, %b1480  %v0 = phi ptr [ %v2, %b17 ], [ undef, %b14 ]81  %v1 = load i8, ptr %v0, align 182  switch i8 %v1, label %b17 [83    i8 32, label %b1884    i8 9, label %b1885  ]86 87b17:                                              ; preds = %b1688  %v2 = getelementptr inbounds i8, ptr %v0, i32 189  br label %b1690 91b18:                                              ; preds = %b16, %b1692  unreachable93}94 95; Function Attrs: nounwind96declare void @f1(ptr nocapture readonly, ptr nocapture readonly, ...) local_unnamed_addr #097 98attributes #0 = { nounwind "target-cpu"="hexagonv62" }99