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

Unified Diff: tests_lit/llvm2ice_tests/square.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: tests_lit/llvm2ice_tests/square.ll
diff --git a/tests_lit/llvm2ice_tests/square.ll b/tests_lit/llvm2ice_tests/square.ll
index 50fa9e2dd5d0aa439977ee7ce8fdca2a2c07f633..4c82cebeae387160c4f81e08e11af14dcdb70e82 100644
--- a/tests_lit/llvm2ice_tests/square.ll
+++ b/tests_lit/llvm2ice_tests/square.ll
@@ -33,18 +33,20 @@ entry:
; CHECK-LABEL: Square_i32
; CHECK: imul [[REG:e..]],[[REG]]
-define internal i16 @Square_i16(i16 %a) {
+define internal i32 @Square_i16(i16 %a) {
Jim Stichnoth 2016/01/12 14:54:03 You should also change the i16 arg to be i32 (or l
sehr 2016/01/12 19:01:19 Done.
entry:
%result = mul i16 %a, %a
- ret i16 %result
+ %result.i32 = sext i16 %result to i32
+ ret i32 %result.i32
}
; CHECK-LABEL: Square_i16
; CHECK: imul [[REG:..]],[[REG]]
-define internal i8 @Square_i8(i8 %a) {
+define internal i32 @Square_i8(i8 %a) {
entry:
%result = mul i8 %a, %a
- ret i8 %result
+ %result.i32 = sext i8 %result to i32
+ ret i32 %result.i32
}
; CHECK-LABEL: Square_i8
; CHECK: imul al

Powered by Google App Engine
This is Rietveld 408576698