| OLD | NEW |
| 1 ; Tests the branch optimizations under O2 (against a lack of | 1 ; Tests the branch optimizations under O2 (against a lack of |
| 2 ; optimizations under Om1). | 2 ; optimizations under Om1). |
| 3 | 3 |
| 4 ; RUN: %p2i -i %s --args -O2 --verbose none \ | 4 ; RUN: %p2i -i %s --args -O2 --verbose none \ |
| 5 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ | 5 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ |
| 6 ; RUN: | llvm-objdump -d -symbolize -x86-asm-syntax=intel - \ | 6 ; RUN: | llvm-objdump -d -symbolize -x86-asm-syntax=intel - \ |
| 7 ; RUN: | FileCheck --check-prefix=O2 %s | 7 ; RUN: | FileCheck --check-prefix=O2 %s |
| 8 ; RUN: %p2i -i %s --args -Om1 --verbose none \ | 8 ; RUN: %p2i -i %s --args -Om1 --verbose none \ |
| 9 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ | 9 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ |
| 10 ; RUN: | llvm-objdump -d -symbolize -x86-asm-syntax=intel - \ | 10 ; RUN: | llvm-objdump -d -symbolize -x86-asm-syntax=intel - \ |
| 11 ; RUN: | FileCheck --check-prefix=OM1 %s | 11 ; RUN: | FileCheck --check-prefix=OM1 %s |
| 12 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s | 12 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s |
| 13 ; RUN: %p2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s | 13 ; RUN: %p2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s |
| 14 | 14 |
| 15 declare void @dummy() | 15 declare void @dummy() |
| 16 | 16 |
| 17 ; An unconditional branch to the next block should be removed. | 17 ; An unconditional branch to the next block should be removed. |
| 18 define void @testUncondToNextBlock() { | 18 define void @testUncondToNextBlock() { |
| 19 entry: | 19 entry: |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 ; OM1: cmp | 98 ; OM1: cmp |
| 99 ; OM1: jne | 99 ; OM1: jne |
| 100 ; OM1: jmp | 100 ; OM1: jmp |
| 101 ; OM1: call | 101 ; OM1: call |
| 102 ; OM1: ret | 102 ; OM1: ret |
| 103 ; OM1: call | 103 ; OM1: call |
| 104 ; OM1: ret | 104 ; OM1: ret |
| 105 | 105 |
| 106 ; ERRORS-NOT: ICE translation error | 106 ; ERRORS-NOT: ICE translation error |
| 107 ; DUMP-NOT: SZ | 107 ; DUMP-NOT: SZ |
| OLD | NEW |