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

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

Issue 1397933002: Start incorporating the ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit and add URL. 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 | « src/IceTargetLoweringMIPS32.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/ret.ll
diff --git a/tests_lit/assembler/arm32/ret.ll b/tests_lit/assembler/arm32/ret.ll
new file mode 100644
index 0000000000000000000000000000000000000000..27596c97ea801320b25b6fa252f204cb413a0098
--- /dev/null
+++ b/tests_lit/assembler/arm32/ret.ll
@@ -0,0 +1,36 @@
+; Shows that the ARM integrated assembler can translate a trivial,
+; bundle-aligned function.
+
+; RUN: %p2i --filetype=asm -i %s --target=arm32 \
+; RUN: | FileCheck %s --check-prefix=ASM
+; RUN: %p2i --filetype=iasm -i %s --target=arm32 \
+; RUN: | FileCheck %s --check-prefix=IASM
+
+define internal void @f() {
+ ret void
+}
+
+; ASM-LABEL:f:
+; ASM-NEXT: .Lf$__0:
+; ASM-NEXT: bx lr
+
+; 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
« no previous file with comments | « src/IceTargetLoweringMIPS32.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698