Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Side by Side Diff: tests_lit/llvm2ice_tests/fp.arith.ll

Issue 2317653004: Subzero, MIPS32: Introduction of genTargetHelperCallFor (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: FREM resolved Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests_lit/llvm2ice_tests/arith.ll ('k') | tests_lit/llvm2ice_tests/nacl-mem-intrinsics.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/arith.ll ('k') | tests_lit/llvm2ice_tests/nacl-mem-intrinsics.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698