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

Unified Diff: crosstest/test_cast_to_u1.ll

Issue 1665263003: Subzero. ARM32. Nonsfi. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses comments. Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Makefile.standalone ('k') | pydir/build-runtime.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crosstest/test_cast_to_u1.ll
diff --git a/crosstest/test_cast_to_u1.ll b/crosstest/test_cast_to_u1.ll
index 31c1f077e3458ad2cbb84d470ad6cd85aec086d0..3e4f07bef52ef42b95c5b803a9b5423ac418f35c 100644
--- a/crosstest/test_cast_to_u1.ll
+++ b/crosstest/test_cast_to_u1.ll
@@ -76,15 +76,17 @@ entry:
define i32 @_Z4castIdbET0_T_(double %a) {
entry:
; %tobool = fcmp une double %a, 0.000000e+00
- %tobool = fptoui double %a to i1
- %tobool.ret_ext = zext i1 %tobool to i32
+ %tobool = fptoui double %a to i32
+ %tobool.i1 = trunc i32 %tobool to i1
+ %tobool.ret_ext = zext i1 %tobool.i1 to i32
ret i32 %tobool.ret_ext
}
define i32 @_Z4castIfbET0_T_(float %a) {
entry:
; %tobool = fcmp une float %a, 0.000000e+00
- %tobool = fptoui float %a to i1
- %tobool.ret_ext = zext i1 %tobool to i32
+ %tobool = fptoui float %a to i32
+ %tobool.i1 = trunc i32 %tobool to i1
+ %tobool.ret_ext = zext i1 %tobool.i1 to i32
ret i32 %tobool.ret_ext
}
« no previous file with comments | « Makefile.standalone ('k') | pydir/build-runtime.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698