brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · e164c1a Raw
47 lines · plain
1; RUN: llc -verify-machineinstrs < %s | FileCheck %s2target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32"3target triple = "powerpc-montavista-linux-gnuspe"4 5%struct.__va_list_tag.0.9.18.23.32.41.48.55.62.67.72.77.82.87.90.93.96.101.105 = type { i8, i8, i16, ptr, ptr }6 7define fastcc void @test1(ptr %args) {8entry:9  br i1 undef, label %repeat, label %maxlen_reached10 11repeat:                                           ; preds = %entry12  switch i32 undef, label %sw.bb323 [13    i32 77, label %sw.bb7214    i32 111, label %sw.bb30915    i32 80, label %sw.bb31316    i32 117, label %sw.bb32617    i32 88, label %sw.bb32118  ]19 20sw.bb72:                                          ; preds = %repeat21  unreachable22 23sw.bb309:                                         ; preds = %repeat24  unreachable25 26sw.bb313:                                         ; preds = %repeat27  unreachable28 29sw.bb321:                                         ; preds = %repeat30  unreachable31 32sw.bb323:                                         ; preds = %repeat33  %0 = va_arg ptr %args, i3234  unreachable35 36sw.bb326:                                         ; preds = %repeat37  unreachable38 39maxlen_reached:                                   ; preds = %entry40  ret void41}42 43; If the SD nodes are not cleaup up correctly, then this can fail to compile44; with an error like:  Cannot select: ch = setlt [ID=6]45; CHECK: @test146 47