| 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: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ | 4 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ |
| 5 ; RUN: --target x8632 -i %s --args -O2 -allow-externally-defined-symbols \ | 5 ; RUN: --target x8632 -i %s --args -O2 -allow-externally-defined-symbols \ |
| 6 ; RUN: | %if --need=target_X8632 --command FileCheck --check-prefix=O2 %s | 6 ; RUN: | %if --need=target_X8632 --command FileCheck --check-prefix=O2 %s |
| 7 | 7 |
| 8 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ | 8 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ |
| 9 ; RUN: --target x8632 -i %s --args -Om1 -allow-externally-defined-symbols \ | 9 ; RUN: --target x8632 -i %s --args -Om1 -allow-externally-defined-symbols \ |
| 10 ; RUN: | %if --need=target_X8632 --command FileCheck --check-prefix=OM1 %s | 10 ; RUN: | %if --need=target_X8632 --command FileCheck --check-prefix=OM1 %s |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 ; RUN: --disassemble --target arm32 -i %s --args -Om1 \ | 21 ; RUN: --disassemble --target arm32 -i %s --args -Om1 \ |
| 22 ; RUN: -allow-externally-defined-symbols \ | 22 ; RUN: -allow-externally-defined-symbols \ |
| 23 ; RUN: | %if --need=target_ARM32 \ | 23 ; RUN: | %if --need=target_ARM32 \ |
| 24 ; RUN: --command FileCheck \ | 24 ; RUN: --command FileCheck \ |
| 25 ; RUN: --check-prefix ARM32OM1 %s | 25 ; RUN: --check-prefix ARM32OM1 %s |
| 26 | 26 |
| 27 ; TODO(jaydeep.patil): Using --skip-unimplemented for MIPS32 | 27 ; TODO(jaydeep.patil): Using --skip-unimplemented for MIPS32 |
| 28 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ | 28 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ |
| 29 ; RUN: --command %p2i --filetype=asm --assemble \ | 29 ; RUN: --command %p2i --filetype=asm --assemble \ |
| 30 ; RUN: --disassemble --target mips32 -i %s --args -O2 \ | 30 ; RUN: --disassemble --target mips32 -i %s --args -O2 \ |
| 31 ; RUN: --skip-unimplemented \ | |
| 32 ; RUN: -allow-externally-defined-symbols \ | 31 ; RUN: -allow-externally-defined-symbols \ |
| 33 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ | 32 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ |
| 34 ; RUN: --command FileCheck --check-prefix MIPS32O2 %s | 33 ; RUN: --command FileCheck --check-prefix MIPS32O2 %s |
| 35 | 34 |
| 36 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ | 35 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ |
| 37 ; RUN: --command %p2i --filetype=asm --assemble \ | 36 ; RUN: --command %p2i --filetype=asm --assemble \ |
| 38 ; RUN: --disassemble --target mips32 -i %s --args -Om1 \ | 37 ; RUN: --disassemble --target mips32 -i %s --args -Om1 \ |
| 39 ; RUN: --skip-unimplemented \ | |
| 40 ; RUN: -allow-externally-defined-symbols \ | 38 ; RUN: -allow-externally-defined-symbols \ |
| 41 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ | 39 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ |
| 42 ; RUN: --command FileCheck \ | 40 ; RUN: --command FileCheck \ |
| 43 ; RUN: --check-prefix MIPS32OM1 %s | 41 ; RUN: --check-prefix MIPS32OM1 %s |
| 44 | 42 |
| 45 declare void @dummy() | 43 declare void @dummy() |
| 46 | 44 |
| 47 ; An unconditional branch to the next block should be removed. | 45 ; An unconditional branch to the next block should be removed. |
| 48 define internal void @testUncondToNextBlock() { | 46 define internal void @testUncondToNextBlock() { |
| 49 entry: | 47 entry: |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 ; ARM32OM1-NEXT: bl {{.*}} dummy | 302 ; ARM32OM1-NEXT: bl {{.*}} dummy |
| 305 | 303 |
| 306 ; MIPS32O2-LABEL: testUncondToBlockAfterContract | 304 ; MIPS32O2-LABEL: testUncondToBlockAfterContract |
| 307 ; MIPS32O2: jal {{.*}} dummy | 305 ; MIPS32O2: jal {{.*}} dummy |
| 308 ; MIPS32O2: .LtestUncondToBlockAfterContract$target | 306 ; MIPS32O2: .LtestUncondToBlockAfterContract$target |
| 309 | 307 |
| 310 ; MIPS32OM1-LABEL: testUncondToBlockAfterContract | 308 ; MIPS32OM1-LABEL: testUncondToBlockAfterContract |
| 311 ; MIPS32OM1: jal {{.*}} dummy | 309 ; MIPS32OM1: jal {{.*}} dummy |
| 312 ; MIPS32OM1: b | 310 ; MIPS32OM1: b |
| 313 ; MIPS32OM1: .LtestUncondToBlockAfterContract$target | 311 ; MIPS32OM1: .LtestUncondToBlockAfterContract$target |
| OLD | NEW |