| ; This tests the basic structure of the Unreachable instruction. |
| ; RUN: %llvm2ice --verbose inst %s | FileCheck %s |
| ; RUN: %llvm2ice --verbose none %s \ |
| ; RUN: | llvm-mc -arch=x86 -x86-asm-syntax=intel -filetype=obj |
| ; RUN: %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 internal i32 @divide(i32 %num, i32 %den) { |
| %cmp = icmp ne i32 %den, 0 |
| br i1 %cmp, label %return, label %abort |
| %div = sdiv i32 %num, %den |
| ; CHECK: call ice_unreachable |
| ; ERRORS-NOT: ICE translation error |