brintos

brintos / llvm-project-archived public Read only

0
0
Text · 906 B · 0a772f7 Raw
37 lines · plain
1; RUN: opt -passes=mergefunc -disable-output < %s2; This used to trigger a ConstantExpr::getBitCast assertion.3 4define void @t1() unnamed_addr uwtable ssp align 2 {5entry:6  switch i32 undef, label %sw.bb12 [7    i32 127, label %sw.bb8    i32 126, label %sw.bb49  ]10 11sw.bb:                                            ; preds = %entry12  unreachable13 14sw.bb4:                                           ; preds = %entry15  unreachable16 17sw.bb12:                                          ; preds = %entry18  ret void19}20 21define void @t2() unnamed_addr uwtable ssp align 2 {22entry:23  switch i32 undef, label %sw.bb8 [24    i32 4, label %sw.bb25    i32 3, label %sw.bb426  ]27 28sw.bb:                                            ; preds = %entry29  unreachable30 31sw.bb4:                                           ; preds = %entry32  ret void33 34sw.bb8:                                           ; preds = %entry35  unreachable36}37