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

Unified Diff: runtime/szrt_ll.ll

Issue 1531623007: Add option to force filetype=asm for testing (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review fixes. Tighter ABI checks. Created 4 years, 11 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
Index: runtime/szrt_ll.ll
diff --git a/runtime/szrt_ll.ll b/runtime/szrt_ll.ll
index 1ecfffedc6d56e2eb8081ec250c3800dd61627e6..04e3fb537f4fb6556f3a50619d495d394e46616d 100644
--- a/runtime/szrt_ll.ll
+++ b/runtime/szrt_ll.ll
@@ -26,16 +26,18 @@ entry:
ret <4 x i32> %0
}
-define i8 @__Sz_bitcast_8xi1_i8(<8 x i1> %a) {
+define i32 @__Sz_bitcast_8xi1_i8(<8 x i1> %a) {
entry:
%0 = bitcast <8 x i1> %a to i8
- ret i8 %0
+ %ret = zext i8 %0 to i32
+ ret i32 %ret
}
-define i16 @__Sz_bitcast_16xi1_i16(<16 x i1> %a) {
+define i32 @__Sz_bitcast_16xi1_i16(<16 x i1> %a) {
entry:
%0 = bitcast <16 x i1> %a to i16
- ret i16 %0
+ %ret = zext i16 %0 to i32
+ ret i32 %ret
}
define <8 x i1> @__Sz_bitcast_i8_8xi1(i8 %a) {

Powered by Google App Engine
This is Rietveld 408576698