Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 ; Tests that -asm-verbose doesn't fail liveness validation because of | |
| 2 ; callee-save pushes/pops in a single-basic-block function. | |
| 3 | |
| 4 ; REQUIRES: allow_dump | |
| 5 ; 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
| |
| 6 ; RUN: | FileCheck %s | |
| 7 | |
| 8 define i32 @single_bb(i32 %arg0, i32 %arg1, i32 %arg2, i32 %arg3, i32 %arg4, i32 %arg5, i32 %arg6, i32 %arg7) { | |
| 9 b1: | |
| 10 %t1 = add i32 %arg0, %arg1 | |
| 11 %t2 = add i32 %t1, %arg2 | |
| 12 %t3 = add i32 %t2, %arg3 | |
| 13 %t4 = add i32 %t3, %arg4 | |
| 14 %t5 = add i32 %t4, %arg5 | |
| 15 %t6 = add i32 %t5, %arg6 | |
| 16 %t7 = add i32 %t6, %arg7 | |
| 17 ret i32 %t7 | |
| 18 } | |
| 19 | |
| 20 ; CHECK-LABEL: single_bb | |
| OLD | NEW |