OLD | NEW |
1 ; This tests the basic structure of the Unreachable instruction. | 1 ; This tests the basic structure of the Unreachable instruction. |
2 | 2 |
3 ; TODO(jvoung): fix extra "CALLTARGETS" run. The llvm-objdump symbolizer | 3 ; TODO(jvoung): fix extra "CALLTARGETS" run. The llvm-objdump symbolizer |
4 ; doesn't know how to symbolize non-section-local functions. | 4 ; doesn't know how to symbolize non-section-local functions. |
5 ; The newer LLVM 3.6 one does work, but watch out for other bugs. | 5 ; The newer LLVM 3.6 one does work, but watch out for other bugs. |
6 | 6 |
7 ; RUN: %p2i -i %s -a -O2 --verbose none \ | 7 ; RUN: %p2i -i %s -a -O2 --verbose none \ |
8 ; RUN: | FileCheck --check-prefix=CALLTARGETS %s | 8 ; RUN: | FileCheck --check-prefix=CALLTARGETS %s |
9 ; RUN: %p2i -i %s -a -O2 --verbose none \ | 9 ; RUN: %p2i -i %s -a -O2 --verbose none \ |
10 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | 10 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 return: ; preds = %entry | 24 return: ; preds = %entry |
25 %div = sdiv i32 %num, %den | 25 %div = sdiv i32 %num, %den |
26 ret i32 %div | 26 ret i32 %div |
27 } | 27 } |
28 | 28 |
29 ; CHECK-LABEL: divide | 29 ; CHECK-LABEL: divide |
30 ; CALLTARGETS-LABEL: divide | 30 ; CALLTARGETS-LABEL: divide |
31 ; CHECK: cmp | 31 ; CHECK: cmp |
32 ; CHECK: call -4 | 32 ; CHECK: call -4 |
33 ; CALLTARGETS: call ice_unreachable | 33 ; CALLTARGETS: .long ice_unreachable |
34 ; CHECK: cdq | 34 ; CHECK: cdq |
35 ; CHECK: idiv | 35 ; CHECK: idiv |
36 ; CHECK: ret | 36 ; CHECK: ret |
OLD | NEW |