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

Side by Side Diff: tests_lit/llvm2ice_tests/arith-opt.ll

Issue 265703002: Add Om1 lowering with no optimizations (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Address Jan's third-round comments Created 6 years, 7 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 ; RUIN: %llvm2ice -verbose inst %s | FileCheck %s 1 ; This is a very early test that just checks the representation of i32
2 ; RUIN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s 2 ; arithmetic instructions. No assembly tests are done.
3
4 ; RUN: %llvm2ice --verbose inst %s | FileCheck %s
5 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s
3 ; RUN: %szdiff --llvm2ice=%llvm2ice %s | FileCheck --check-prefix=DUMP %s 6 ; RUN: %szdiff --llvm2ice=%llvm2ice %s | FileCheck --check-prefix=DUMP %s
4 7
5 define i32 @Add(i32 %a, i32 %b) { 8 define i32 @Add(i32 %a, i32 %b) {
6 ; CHECK: define i32 @Add 9 ; CHECK: define i32 @Add
7 entry: 10 entry:
8 %add = add i32 %b, %a 11 %add = add i32 %b, %a
9 ; CHECK: add 12 ; CHECK: add
10 tail call void @Use(i32 %add) 13 tail call void @Use(i32 %add)
11 ; CHECK: call Use 14 ; CHECK: call Use
12 ret i32 %add 15 ret i32 %add
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 entry: 104 entry:
102 %rem = urem i32 %a, %b 105 %rem = urem i32 %a, %b
103 ; CHECK: div 106 ; CHECK: div
104 tail call void @Use(i32 %rem) 107 tail call void @Use(i32 %rem)
105 ; CHECK: call Use 108 ; CHECK: call Use
106 ret i32 %rem 109 ret i32 %rem
107 } 110 }
108 111
109 ; ERRORS-NOT: ICE translation error 112 ; ERRORS-NOT: ICE translation error
110 ; DUMP-NOT: SZ 113 ; DUMP-NOT: SZ
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698