| 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 \ |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 138 |
| 139 define internal float @remFloat(float %a, float %b) { | 139 define internal float @remFloat(float %a, float %b) { |
| 140 entry: | 140 entry: |
| 141 %div = frem float %a, %b | 141 %div = frem float %a, %b |
| 142 ret float %div | 142 ret float %div |
| 143 } | 143 } |
| 144 ; CHECK-LABEL: remFloat | 144 ; CHECK-LABEL: remFloat |
| 145 ; CHECK: call {{.*}} R_{{.*}} fmodf | 145 ; CHECK: call {{.*}} R_{{.*}} fmodf |
| 146 ; ARM32-LABEL: remFloat | 146 ; ARM32-LABEL: remFloat |
| 147 ; ARM32: bl {{.*}} fmodf | 147 ; ARM32: bl {{.*}} fmodf |
| 148 ; MIPS32-LABEL: remFloat |
| 149 ; MIPS32: jal {{.*}} fmodf |
| 148 | 150 |
| 149 define internal double @remDouble(double %a, double %b) { | 151 define internal double @remDouble(double %a, double %b) { |
| 150 entry: | 152 entry: |
| 151 %div = frem double %a, %b | 153 %div = frem double %a, %b |
| 152 ret double %div | 154 ret double %div |
| 153 } | 155 } |
| 154 ; CHECK-LABEL: remDouble | 156 ; CHECK-LABEL: remDouble |
| 155 ; CHECK: call {{.*}} R_{{.*}} fmod | 157 ; CHECK: call {{.*}} R_{{.*}} fmod |
| 156 ; ARM32-LABEL: remDouble | 158 ; ARM32-LABEL: remDouble |
| 157 ; ARM32: bl {{.*}} fmod | 159 ; ARM32: bl {{.*}} fmod |
| 160 ; MIPS32-LABEL: remDouble |
| 161 ; MIPS32: jal {{.*}} fmod |
| OLD | NEW |