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

Unified Diff: tests_lit/assembler/arm32/ret.ll

Issue 1418523002: Add hybrid assembler concept to ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. 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
« no previous file with comments | « tests_lit/assembler/arm32/mov-imm.ll ('k') | tests_lit/assembler/arm32/sub.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/assembler/arm32/ret.ll
diff --git a/tests_lit/assembler/arm32/ret.ll b/tests_lit/assembler/arm32/ret.ll
index 95fce9771234b5e5b9b4bd2302cedc4031948139..5df61d4f3fa2fb3c86a877b0e678d95335c0e47c 100644
--- a/tests_lit/assembler/arm32/ret.ll
+++ b/tests_lit/assembler/arm32/ret.ll
@@ -3,36 +3,63 @@
; REQUIRES: allow_dump
-; RUN: %p2i --filetype=asm -i %s --target=arm32 \
+; Compile using standalone assembler.
+; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 \
; RUN: | FileCheck %s --check-prefix=ASM
-; RUN: %p2i --filetype=iasm -i %s --target=arm32 \
+
+; Show bytes in assembled standalone code.
+; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \
+; RUN: --args -Om1 | FileCheck %s --check-prefix=DIS
+
+; Compile using integrated assembler.
+; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -Om1 \
; RUN: | FileCheck %s --check-prefix=IASM
+; Show bytes in assembled integrated code.
+; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \
+; RUN: --args -Om1 | FileCheck %s --check-prefix=DIS
+
define internal void @f() {
ret void
}
; ASM-LABEL:f:
; ASM-NEXT: .Lf$__0:
-; ASM-NEXT: bx lr
+; ASM-NEXT: bx lr
+
+
+; DIS-LABEL:00000000 <f>:
; IASM-LABEL:f:
-; IASM-NEXT: .byte 0x1e
-; IASM-NEXT: .byte 0xff
-; IASM-NEXT: .byte 0x2f
-; IASM-NEXT: .byte 0xe1
-
-; IASM-NEXT: .byte 0x70
-; IASM-NEXT: .byte 0x0
-; IASM-NEXT: .byte 0x20
-; IASM-NEXT: .byte 0xe1
-
-; IASM-NEXT: .byte 0x70
-; IASM-NEXT: .byte 0x0
-; IASM-NEXT: .byte 0x20
-; IASM-NEXT: .byte 0xe1
-
-; IASM-NEXT: .byte 0x70
-; IASM-NEXT: .byte 0x0
-; IASM-NEXT: .byte 0x20
-; IASM-NEXT: .byte 0xe1
+
+; DIS-NEXT: 0: e12fff1e
+; IASM-NEXT: .byte 0x1e
+; IASM-NEXT: .byte 0xff
+; IASM-NEXT: .byte 0x2f
+; IASM-NEXT: .byte 0xe1
+
+; DIS-NEXT: 4: e7fedef0
+; IASM-NEXT: .byte 0xf0
+; IASM-NEXT: .byte 0xde
+; IASM-NEXT: .byte 0xfe
+; IASM-NEXT: .byte 0xe7
+
+; DIS-NEXT: 8: e7fedef0
+; IASM-NEXT: .byte 0xf0
+; IASM-NEXT: .byte 0xde
+; IASM-NEXT: .byte 0xfe
+; IASM-NEXT: .byte 0xe7
+
+; DIS-NEXT: c: e7fedef0
+; IASM-NEXT: .byte 0xf0
+; IASM-NEXT: .byte 0xde
+; IASM-NEXT: .byte 0xfe
+; IASM-NEXT: .byte 0xe7
+
+define internal void @ignore() {
+ ret void
+}
+
+; ASM-LABEL:ignore:
+; DIS-LABEL:00000010 <ignore>:
+; IASM-LABEL:ignore:
« no previous file with comments | « tests_lit/assembler/arm32/mov-imm.ll ('k') | tests_lit/assembler/arm32/sub.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698