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

Unified Diff: tests_lit/assembler/arm32/global-load-store.ll

Issue 1424863005: Handle MOV (immediate) and MOVT to load ARM global addresses. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix movw and movt Created 5 years, 2 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
« src/IceAssemblerARM32.cpp ('K') | « src/IceTargetLoweringARM32.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/assembler/arm32/global-load-store.ll
diff --git a/tests_lit/assembler/arm32/global-load-store.ll b/tests_lit/assembler/arm32/global-load-store.ll
index d5c1edfdcc0669f30bbc71f23d91e93126f7fcf3..6c07913d337f5478bf4e8f263965caac4a0d36dd 100644
--- a/tests_lit/assembler/arm32/global-load-store.ll
+++ b/tests_lit/assembler/arm32/global-load-store.ll
@@ -18,6 +18,8 @@
; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \
; RUN: --args -O2 | FileCheck %s --check-prefix=DIS
+@filler = internal global [128 x i8] zeroinitializer, align 4
+
@global1 = internal global [4 x i8] zeroinitializer, align 4
; ASM-LABEL: global1:
@@ -53,8 +55,8 @@ define internal i32 @load() {
; IASM-LABEL:load:
; IASM-NEXT: .Lload$__0:
-; IASM-NEXT: movw r0, #:lower16:global1
-; IASM-NEXT: movt r0, #:upper16:global1
+; IASM-NEXT: movw r0, #:lower16:global1 @ .word e3000000
+; IASM-NEXT: movt r0, #:upper16:global1 @ .word e3400000
; IASM-NEXT: ldr r0, [r0]
; IASM-NEXT: .byte 0x1e
; IASM-NEXT: .byte 0xff
@@ -82,8 +84,8 @@ define internal void @store(i32 %v) {
; IASM-LABEL:store:
; IASM-NEXT: .Lstore$__0:
-; IASM-NEXT: movw r1, #:lower16:global1
-; IASM-NEXT: movt r1, #:upper16:global1
+; IASM-NEXT: movw r1, #:lower16:global1 @ .word e3001000
+; IASM-NEXT: movt r1, #:upper16:global1 @ .word e3401000
; IASM-NEXT: str r0, [r1]
; IASM-NEXT: .byte 0x1e
; IASM-NEXT: .byte 0xff
« src/IceAssemblerARM32.cpp ('K') | « src/IceTargetLoweringARM32.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698