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

Side by Side Diff: tests_lit/llvm2ice_tests/loop-nest-depth.ll

Issue 1531623007: Add option to force filetype=asm for testing (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix merge ordering issue. Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 ; Test the the loop nest depth is correctly calculated for basic blocks. 1 ; Test the the loop nest depth is correctly calculated for basic blocks.
2 2
3 ; REQUIRES: allow_dump 3 ; REQUIRES: allow_dump
4 4
5 ; Single threaded so that the dumps used for checking happen in order 5 ; Single threaded so that the dumps used for checking happen in order
6 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 --verbose=loop \ 6 ; RUN: %p2i --filetype=asm -i %s --args -O2 --verbose=loop \
7 ; RUN: --threads=0 | FileCheck %s 7 ; RUN: --threads=0 | FileCheck %s
8 8
9 define internal void @test_single_loop(i32 %a32) { 9 define internal void @test_single_loop(i32 %a32) {
10 entry: 10 entry:
11 %a = trunc i32 %a32 to i1 11 %a = trunc i32 %a32 to i1
12 br label %loop0 12 br label %loop0
13 13
14 loop0: ; <-+ 14 loop0: ; <-+
15 br label %loop1 ; | 15 br label %loop1 ; |
16 loop1: ; | 16 loop1: ; |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 } 297 }
298 298
299 ; CHECK-LABEL: After loop nest depth analysis 299 ; CHECK-LABEL: After loop nest depth analysis
300 ; CHECK-NEXT: entry: 300 ; CHECK-NEXT: entry:
301 ; CHECK-NEXT: LoopNestDepth = 0 301 ; CHECK-NEXT: LoopNestDepth = 0
302 ; CHECK-NEXT: body: 302 ; CHECK-NEXT: body:
303 ; CHECK-NEXT: LoopNestDepth = 1 303 ; CHECK-NEXT: LoopNestDepth = 1
304 ; CHECK-NEXT: exit: 304 ; CHECK-NEXT: exit:
305 ; CHECK-NEXT: LoopNestDepth = 0 305 ; CHECK-NEXT: LoopNestDepth = 0
306 ; CHECK-LABEL: Before RMW 306 ; CHECK-LABEL: Before RMW
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698