OLD | NEW |
1 ; This tries to be a comprehensive test of f32 and f64 arith operations. | 1 ; This tries to be a comprehensive test of f32 and f64 arith 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: %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 -O2 \ | 7 ; RUN: --target x8632 -i %s --args -O2 \ |
8 ; RUN: | %if --need=target_X8632 --command FileCheck %s | 8 ; RUN: | %if --need=target_X8632 --command FileCheck %s |
9 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ | 9 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ |
10 ; RUN: --target x8632 -i %s --args -Om1 \ | 10 ; RUN: --target x8632 -i %s --args -Om1 \ |
11 ; RUN: | %if --need=target_X8632 --command FileCheck %s | 11 ; RUN: | %if --need=target_X8632 --command FileCheck %s |
12 | 12 |
13 ; RUN: %if --need=target_ARM32 --need=allow_dump \ | 13 ; RUN: %if --need=target_ARM32 \ |
14 ; RUN: --command %p2i --filetype=asm --assemble --disassemble --target arm32 \ | 14 ; RUN: --command %p2i --filetype=obj --disassemble --target arm32 \ |
15 ; RUN: -i %s --args -O2 --skip-unimplemented \ | 15 ; RUN: -i %s --args -O2 \ |
16 ; RUN: | %if --need=target_ARM32 --need=allow_dump \ | 16 ; RUN: | %if --need=target_ARM32 \ |
17 ; RUN: --command FileCheck --check-prefix ARM32 %s | 17 ; RUN: --command FileCheck --check-prefix ARM32 %s |
18 ; RUN: %if --need=target_ARM32 --need=allow_dump \ | 18 ; RUN: %if --need=target_ARM32 \ |
19 ; RUN: --command %p2i --filetype=asm --assemble --disassemble --target arm32 \ | 19 ; RUN: --command %p2i --filetype=obj --disassemble --target arm32 \ |
20 ; RUN: -i %s --args -Om1 --skip-unimplemented \ | 20 ; RUN: -i %s --args -Om1 \ |
21 ; RUN: | %if --need=target_ARM32 --need=allow_dump \ | 21 ; RUN: | %if --need=target_ARM32 \ |
22 ; RUN: --command FileCheck --check-prefix ARM32 %s | 22 ; RUN: --command FileCheck --check-prefix ARM32 %s |
23 | 23 |
24 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ | 24 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ |
25 ; RUN: --command %p2i --filetype=asm --assemble --disassemble --target \ | 25 ; RUN: --command %p2i --filetype=asm --assemble --disassemble --target \ |
26 ; RUN: mips32 -i %s --args -O2 --skip-unimplemented \ | 26 ; RUN: mips32 -i %s --args -O2 --skip-unimplemented \ |
27 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ | 27 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ |
28 ; RUN: --command FileCheck --check-prefix MIPS32 %s | 28 ; RUN: --command FileCheck --check-prefix MIPS32 %s |
29 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ | 29 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ |
30 ; RUN: --command %p2i --filetype=asm --assemble --disassemble --target \ | 30 ; RUN: --command %p2i --filetype=asm --assemble --disassemble --target \ |
31 ; RUN: mips32 -i %s --args -Om1 --skip-unimplemented \ | 31 ; RUN: mips32 -i %s --args -Om1 --skip-unimplemented \ |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 entry: | 152 entry: |
153 %div = frem double %a, %b | 153 %div = frem double %a, %b |
154 ret double %div | 154 ret double %div |
155 } | 155 } |
156 ; CHECK-LABEL: remDouble | 156 ; CHECK-LABEL: remDouble |
157 ; CHECK: call {{.*}} R_{{.*}} fmod | 157 ; CHECK: call {{.*}} R_{{.*}} fmod |
158 ; ARM32-LABEL: remDouble | 158 ; ARM32-LABEL: remDouble |
159 ; ARM32: bl {{.*}} fmod | 159 ; ARM32: bl {{.*}} fmod |
160 ; MIPS32-LABEL: remDouble | 160 ; MIPS32-LABEL: remDouble |
161 ; MIPS32: jal {{.*}} fmod | 161 ; MIPS32: jal {{.*}} fmod |
OLD | NEW |