| ; RUIN: %llvm2ice %s | FileCheck %s |
| ; RUIN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s |
| ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s |
| ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ |
| ; RUN: | FileCheck --check-prefix=DUMP %s |
| define i32 @testSwitch(i32 %a) { |
| switch i32 %a, label %sw.default [ |
| sw.default: ; preds = %entry |
| sw.bb1: ; preds = %entry, %entry |
| sw.bb2: ; preds = %sw.bb1, %entry, %entry |
| %result.0 = phi i32 [ 1, %entry ], [ 1, %entry ], [ %phitmp, %sw.bb1 ] |
| sw.epilog: ; preds = %sw.bb2, %sw.default, %entry, %entry, %entry |
| %result.1 = phi i32 [ %add, %sw.default ], [ %result.0, %sw.bb2 ], [ 17, %entry ], [ 17, %entry ], [ 17, %entry ] |
| ; CHECK-NOT: ICE translation error |
| ; ERRORS-NOT: ICE translation error |