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

Unified Diff: tests_lit/llvm2ice_tests/asm-verbose.ll

Issue 1353923004: Subzero: Fix a couple of debugging tools. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Update a comment Created 5 years, 3 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/IceTargetLoweringX86BaseImpl.h ('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/asm-verbose.ll
diff --git a/tests_lit/llvm2ice_tests/asm-verbose.ll b/tests_lit/llvm2ice_tests/asm-verbose.ll
new file mode 100644
index 0000000000000000000000000000000000000000..6c7c11202b8f1ec8694e356bc5062b6d92ff4052
--- /dev/null
+++ b/tests_lit/llvm2ice_tests/asm-verbose.ll
@@ -0,0 +1,20 @@
+; Tests that -asm-verbose doesn't fail liveness validation because of
+; callee-save pushes/pops in a single-basic-block function.
+
+; REQUIRES: allow_dump
+; RUN: %p2i -i %s --filetype=asm --args -O2 -asm-verbose \
John 2015/09/18 10:26:14 can this be enabled for the other targets?
Jim Stichnoth 2015/09/18 13:38:39 Added a TODO for this because: - x8664 needs some
+; RUN: | FileCheck %s
+
+define i32 @single_bb(i32 %arg0, i32 %arg1, i32 %arg2, i32 %arg3, i32 %arg4, i32 %arg5, i32 %arg6, i32 %arg7) {
+b1:
+ %t1 = add i32 %arg0, %arg1
+ %t2 = add i32 %t1, %arg2
+ %t3 = add i32 %t2, %arg3
+ %t4 = add i32 %t3, %arg4
+ %t5 = add i32 %t4, %arg5
+ %t6 = add i32 %t5, %arg6
+ %t7 = add i32 %t6, %arg7
+ ret i32 %t7
+}
+
+; CHECK-LABEL: single_bb
« no previous file with comments | « src/IceTargetLoweringX86BaseImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698