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 | 2 |
3 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 \ | 3 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 \ |
4 ; RUN: -allow-externally-defined-symbols | FileCheck %s | 4 ; RUN: -allow-externally-defined-symbols | FileCheck %s |
5 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -Om1 \ | 5 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -Om1 \ |
6 ; RUN: -allow-externally-defined-symbols | FileCheck %s \ | 6 ; RUN: -allow-externally-defined-symbols | FileCheck %s \ |
7 ; RUN: --check-prefix=CHECK-OM1 | 7 ; RUN: --check-prefix=CHECK-OM1 |
8 | 8 |
9 ; RUN: %if --need=target_ARM32 --command %p2i --filetype=obj --disassemble \ | 9 ; RUN: %if --need=target_ARM32 --command %p2i --filetype=obj --disassemble \ |
10 ; RUN: --target arm32 -i %s --args -O2 \ | 10 ; RUN: --target arm32 -i %s --args -O2 \ |
11 ; RUN: -allow-externally-defined-symbols \ | 11 ; RUN: -allow-externally-defined-symbols \ |
12 ; RUN: | %if --need=target_ARM32 --command FileCheck %s \ | 12 ; RUN: | %if --need=target_ARM32 --command FileCheck %s \ |
13 ; RUN: --check-prefix=ARM32 --check-prefix=ARM32-O2 | 13 ; RUN: --check-prefix=ARM32 --check-prefix=ARM32-O2 |
14 | 14 |
15 ; RUN: %if --need=target_ARM32 --command %p2i --filetype=obj --disassemble \ | 15 ; RUN: %if --need=target_ARM32 --command %p2i --filetype=obj --disassemble \ |
16 ; RUN: --target arm32 -i %s --args -Om1 \ | 16 ; RUN: --target arm32 -i %s --args -Om1 \ |
17 ; RUN: -allow-externally-defined-symbols \ | 17 ; RUN: -allow-externally-defined-symbols \ |
18 ; RUN: | %if --need=target_ARM32 --command FileCheck %s \ | 18 ; RUN: | %if --need=target_ARM32 --command FileCheck %s \ |
19 ; RUN: --check-prefix=ARM32 --check-prefix=ARM32-OM1 | 19 ; RUN: --check-prefix=ARM32 --check-prefix=ARM32-OM1 |
20 | 20 |
21 ; RUN: %if --need=allow_dump --need=target_MIPS32 --command %p2i \ | 21 ; RUN: %if --need=allow_dump --need=target_MIPS32 --command %p2i \ |
22 ; RUN: --filetype=asm --target mips32 -i %s --args -Om1 \ | 22 ; RUN: --filetype=asm --target mips32 -i %s --args -Om1 \ |
23 ; RUN: -allow-externally-defined-symbols --skip-unimplemented \ | 23 ; RUN: -allow-externally-defined-symbols \ |
24 ; RUN: | %if --need=allow_dump --need=target_MIPS32 --command FileCheck %s \ | 24 ; RUN: | %if --need=allow_dump --need=target_MIPS32 --command FileCheck %s \ |
25 ; RUN: --check-prefix=MIPS32 | 25 ; RUN: --check-prefix=MIPS32 |
26 | 26 |
27 define internal void @fcmpEq(float %a, float %b, double %c, double %d) { | 27 define internal void @fcmpEq(float %a, float %b, double %c, double %d) { |
28 entry: | 28 entry: |
29 %cmp = fcmp oeq float %a, %b | 29 %cmp = fcmp oeq float %a, %b |
30 br i1 %cmp, label %if.then, label %if.end | 30 br i1 %cmp, label %if.then, label %if.end |
31 | 31 |
32 if.then: ; preds = %entry | 32 if.then: ; preds = %entry |
33 call void @func() | 33 call void @func() |
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1022 ; CHECK: ucomisd | 1022 ; CHECK: ucomisd |
1023 ; CHECK: ja | 1023 ; CHECK: ja |
1024 ; CHECK: movsd | 1024 ; CHECK: movsd |
1025 ; ARM32-LABEL: selectDoubleVarVar | 1025 ; ARM32-LABEL: selectDoubleVarVar |
1026 ; ARM32: vcmp.f64 | 1026 ; ARM32: vcmp.f64 |
1027 ; ARM32-OM1: vmovne.f64 d{{[0-9]+}} | 1027 ; ARM32-OM1: vmovne.f64 d{{[0-9]+}} |
1028 ; ARM32-O2: vmovmi.f64 d{{[0-9]+}} | 1028 ; ARM32-O2: vmovmi.f64 d{{[0-9]+}} |
1029 ; ARM32: bx | 1029 ; ARM32: bx |
1030 ; MIPS32-LABEL: selectDoubleVarVar | 1030 ; MIPS32-LABEL: selectDoubleVarVar |
1031 ; MIPS32: movn.d {{.*}} | 1031 ; MIPS32: movn.d {{.*}} |
OLD | NEW |