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

Side by Side Diff: crosstest/test_arith_fabs.ll

Issue 1022573004: Subzero: Add fabs intrinsic support. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 5 years, 9 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 | « crosstest/test_arith.h ('k') | crosstest/test_arith_main.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 declare float @llvm.fabs.f32(float)
2 declare double @llvm.fabs.f64(double)
3 declare <4 x float> @llvm.fabs.v4f32(<4 x float>)
4
5 define float @_Z6myFabsf(float %a) {
6 %x = call float @llvm.fabs.f32(float %a)
7 ret float %x
8 }
9
10 define double @_Z6myFabsd(double %a) {
11 %x = call double @llvm.fabs.f64(double %a)
12 ret double %x
13 }
14
15 define <4 x float> @_Z6myFabsDv4_f(<4 x float> %a) {
16 %x = call <4 x float> @llvm.fabs.v4f32(<4 x float> %a)
17 ret <4 x float> %x
18 }
OLDNEW
« no previous file with comments | « crosstest/test_arith.h ('k') | crosstest/test_arith_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698