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

Unified Diff: tests_lit/llvm2ice_tests/64bit.pnacl.ll

Issue 1755333002: Subzero. ARM32. Fixes bugs uncovered by the llvm test suite. (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 | « src/IceTargetLoweringARM32.cpp ('k') | tests_lit/llvm2ice_tests/vector-bitcast.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/llvm2ice_tests/64bit.pnacl.ll
diff --git a/tests_lit/llvm2ice_tests/64bit.pnacl.ll b/tests_lit/llvm2ice_tests/64bit.pnacl.ll
index a818b2ad9d45149e36d9534806b7ac3452775bae..b19fa2a16bc0aee592a1a5adda16a6c0270d62ef 100644
--- a/tests_lit/llvm2ice_tests/64bit.pnacl.ll
+++ b/tests_lit/llvm2ice_tests/64bit.pnacl.ll
@@ -1954,3 +1954,29 @@ branch2:
; ARM32-LABEL: phi64Undef
; ARM32: mov {{.*}} #0
; ARM32: mov {{.*}} #0
+
+define internal i32 @addOneToUpperAfterShift(i64 %value) {
+ %a = add i64 %value, 1
+ %s = lshr i64 %a, 40
+ %t = trunc i64 %s to i32
+ %r = add i32 %t, 1
+ ret i32 %r
+; ARM32-LABEL: addOneToUpperAfterShift
+; ARM32: adds
+; ARM32: adc
+; ARM32: lsr
+; ARM32: add
+}
+
+define internal i32 @subOneToUpperAfterShift(i64 %value) {
+ %a = sub i64 %value, 1
+ %s = lshr i64 %a, 40
+ %t = trunc i64 %s to i32
+ %r = sub i32 %t, 1
+ ret i32 %r
+; ARM32-LABEL: subOneToUpperAfterShift
+; ARM32: subs
+; ARM32: sbc
+; ARM32: lsr
+; ARM32: sub
+}
« no previous file with comments | « src/IceTargetLoweringARM32.cpp ('k') | tests_lit/llvm2ice_tests/vector-bitcast.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698