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

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

Issue 1152703006: Subzero ARM: lowerLoad and lowerStore. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: typo in comments Created 5 years, 7 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/IceTargetLoweringX8632.cpp ('k') | no next file » | 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 4a5239274d90bb1992c4bfd4a3a5f3d46663f6ba..8346f0ef3d8d3dfd2288322ef64d7ed0444bfad5 100644
--- a/tests_lit/llvm2ice_tests/64bit.pnacl.ll
+++ b/tests_lit/llvm2ice_tests/64bit.pnacl.ll
@@ -1303,6 +1303,10 @@ entry:
; OPTM1: mov e{{..}},DWORD PTR [e{{..}}]
; OPTM1: mov e{{..}},DWORD PTR [e{{..}}+0x4]
+; ARM32-LABEL: load64
+; ARM32: ldr r{{.*}}, [r[[REG:.*]]]
+; ARM32: ldr r{{.*}}, [r[[REG]], #4]
+
define internal void @store64(i32 %a, i64 %value) {
entry:
%__2 = inttoptr i32 %a to i64*
@@ -1318,6 +1322,10 @@ entry:
; OPTM1: mov DWORD PTR [e[[REGISTER:[a-z]+]]+0x4],
; OPTM1: mov DWORD PTR [e[[REGISTER]]],
+; ARM32-LABEL: store64
+; ARM32: str r{{.*}}, [r[[REG:.*]], #4]
+; ARM32: str r{{.*}}, [r[[REG]]]
+
define internal void @store64Const(i32 %a) {
entry:
%__1 = inttoptr i32 %a to i64*
@@ -1333,6 +1341,14 @@ entry:
; OPTM1: mov DWORD PTR [e[[REGISTER:[a-z]+]]+0x4],0xdeadbeef
; OPTM1: mov DWORD PTR [e[[REGISTER]]],0x12345678
+; ARM32-LABEL: store64Const
+; ARM32: movw [[REG1:.*]], #48879 ; 0xbeef
+; ARM32: movt [[REG1:.*]], #57005 ; 0xdead
+; ARM32: movw [[REG2:.*]], #22136 ; 0x5678
+; ARM32: movt [[REG2:.*]], #4660 ; 0x1234
+; ARM32: str [[REG1]], [r[[REG:.*]], #4]
+; ARM32: str [[REG2]], [r[[REG]]]
+
define internal i64 @select64VarVar(i64 %a, i64 %b) {
entry:
%cmp = icmp ult i64 %a, %b
« no previous file with comments | « src/IceTargetLoweringX8632.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698