| OLD | NEW |
| 1 ; This tries to be a comprehensive test of f32 and f64 compare operations. | 1 ; This tries to be a comprehensive test of f32 and f64 compare operations. |
| 2 ; The CHECK lines are only checking for basic instruction patterns | 2 ; The CHECK lines are only checking for basic instruction patterns |
| 3 ; that should be present regardless of the optimization level, so | 3 ; that should be present regardless of the optimization level, so |
| 4 ; there are no special OPTM1 match lines. | 4 ; there are no special OPTM1 match lines. |
| 5 | 5 |
| 6 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 | FileCheck %s | 6 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 | FileCheck %s |
| 7 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -Om1 | FileCheck %s | 7 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -Om1 | FileCheck %s |
| 8 | 8 |
| 9 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ | 9 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ |
| 10 ; RUN: --command %p2i --filetype=asm --assemble \ | 10 ; RUN: --command %p2i --filetype=asm --assemble \ |
| 11 ; RUN: --disassemble --target mips32 -i %s --args -Om1 --skip-unimplemented \ | 11 ; RUN: --disassemble --target mips32 -i %s --args -Om1 \ |
| 12 ; RUN: -allow-externally-defined-symbols \ | 12 ; RUN: -allow-externally-defined-symbols \ |
| 13 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ | 13 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ |
| 14 ; RUN: --command FileCheck --check-prefix MIPS32 %s | 14 ; RUN: --command FileCheck --check-prefix MIPS32 %s |
| 15 | 15 |
| 16 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ | 16 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ |
| 17 ; RUN: --command %p2i --filetype=asm --assemble \ | 17 ; RUN: --command %p2i --filetype=asm --assemble \ |
| 18 ; RUN: --disassemble --target mips32 -i %s --args -O2 --skip-unimplemented \ | 18 ; RUN: --disassemble --target mips32 -i %s --args -O2 \ |
| 19 ; RUN: -allow-externally-defined-symbols \ | 19 ; RUN: -allow-externally-defined-symbols \ |
| 20 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ | 20 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ |
| 21 ; RUN: --command FileCheck --check-prefix MIPS32O2 %s | 21 ; RUN: --command FileCheck --check-prefix MIPS32O2 %s |
| 22 | 22 |
| 23 define internal float @loadFloat(i32 %a) { | 23 define internal float @loadFloat(i32 %a) { |
| 24 entry: | 24 entry: |
| 25 %__1 = inttoptr i32 %a to float* | 25 %__1 = inttoptr i32 %a to float* |
| 26 %v0 = load float, float* %__1, align 4 | 26 %v0 = load float, float* %__1, align 4 |
| 27 ret float %v0 | 27 ret float %v0 |
| 28 } | 28 } |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 ; CHECK: movsd | 114 ; CHECK: movsd |
| 115 | 115 |
| 116 ; MIPS32-LABEL: storeDoubleConst | 116 ; MIPS32-LABEL: storeDoubleConst |
| 117 ; MIPS32: lui {{.*}},{{.*}} | 117 ; MIPS32: lui {{.*}},{{.*}} |
| 118 ; MIPS32: ldc1 $f{{.*}},{{.*}} | 118 ; MIPS32: ldc1 $f{{.*}},{{.*}} |
| 119 ; MIPS32: sdc1 $f{{.*}},0{{.*}} | 119 ; MIPS32: sdc1 $f{{.*}},0{{.*}} |
| 120 ; MIPS32O2-LABEL: storeDoubleConst | 120 ; MIPS32O2-LABEL: storeDoubleConst |
| 121 ; MIPS32O2: lui {{.*}},{{.*}} | 121 ; MIPS32O2: lui {{.*}},{{.*}} |
| 122 ; MIPS32O2: ldc1 $f{{.*}},{{.*}} | 122 ; MIPS32O2: ldc1 $f{{.*}},{{.*}} |
| 123 ; MIPS32O2: sdc1 $f{{.*}},0{{.*}} | 123 ; MIPS32O2: sdc1 $f{{.*}},0{{.*}} |
| OLD | NEW |