| 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 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ | 3 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ |
| 4 ; RUN: --target x8632 -i %s --args -O2 \ | 4 ; RUN: --target x8632 -i %s --args -O2 \ |
| 5 ; RUN: | %if --need=target_X8632 --command FileCheck %s | 5 ; RUN: | %if --need=target_X8632 --command FileCheck %s |
| 6 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ | 6 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ |
| 7 ; RUN: --target x8632 -i %s --args -Om1 \ | 7 ; RUN: --target x8632 -i %s --args -Om1 \ |
| 8 ; RUN: | %if --need=target_X8632 --command FileCheck %s | 8 ; RUN: | %if --need=target_X8632 --command FileCheck %s |
| 9 | 9 |
| 10 ; RUN: %if --need=target_ARM32 \ | 10 ; RUN: %if --need=target_ARM32 \ |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 ; CHECK-LABEL: divide | 46 ; CHECK-LABEL: divide |
| 47 ; CHECK: cmp | 47 ; CHECK: cmp |
| 48 ; CHECK: ud2 | 48 ; CHECK: ud2 |
| 49 ; CHECK: cdq | 49 ; CHECK: cdq |
| 50 ; CHECK: idiv | 50 ; CHECK: idiv |
| 51 ; CHECK: ret | 51 ; CHECK: ret |
| 52 | 52 |
| 53 ; ARM32-LABEL: divide | 53 ; ARM32-LABEL: divide |
| 54 ; ARM32: tst | 54 ; ARM32: tst |
| 55 ; ARM32: udf | 55 ; ARM32: e7fedef0 |
| 56 ; ARM32: bl {{.*}} __divsi3 | 56 ; ARM32: bl {{.*}} __divsi3 |
| 57 ; ARM32: bx lr | 57 ; ARM32: bx lr |
| 58 | 58 |
| 59 ; MIPS32-LABEL: divide | 59 ; MIPS32-LABEL: divide |
| 60 ; MIPS32: beqz | 60 ; MIPS32: beqz |
| 61 ; MIPS32: nop | 61 ; MIPS32: nop |
| 62 ; MIPS32: teq zero,zero | 62 ; MIPS32: teq zero,zero |
| 63 ; MIPS32: div | 63 ; MIPS32: div |
| 64 | 64 |
| 65 ; MIPS32-O2-LABEL: divide | 65 ; MIPS32-O2-LABEL: divide |
| 66 ; MIPS32-O2: bne | 66 ; MIPS32-O2: bne |
| 67 ; MIPS32-O2: nop | 67 ; MIPS32-O2: nop |
| 68 ; MIPS32-O2: teq zero,zero | 68 ; MIPS32-O2: teq zero,zero |
| 69 ; MIPS32-O2: div | 69 ; MIPS32-O2: div |
| OLD | NEW |