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

Side by Side Diff: tests_lit/llvm2ice_tests/inttoptr.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 second-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 ; Simple test of the inttoptr instruction. This is not part of the
2 ; RUIN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s 2 ; PNaCl bitcode, but llvm2ice accepts it anyway and turns it into an
3 ; assignment instruction.
4
5 ; RUN: %llvm2ice --verbose inst %s | FileCheck %s
6 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s
3 ; RUN: %szdiff --llvm2ice=%llvm2ice %s | FileCheck --check-prefix=DUMP %s 7 ; RUN: %szdiff --llvm2ice=%llvm2ice %s | FileCheck --check-prefix=DUMP %s
4 8
5 define void @dummy_inttoptr(i32 %addr_arg) { 9 define void @dummy_inttoptr(i32 %addr_arg) {
6 entry: 10 entry:
7 %ptr = inttoptr i32 %addr_arg to i32* 11 %ptr = inttoptr i32 %addr_arg to i32*
8 ret void 12 ret void
9 ; CHECK: %ptr = i32 %addr_arg 13 ; CHECK: %ptr = i32 %addr_arg
10 } 14 }
11 15
12 ; ERRORS-NOT: ICE translation error 16 ; ERRORS-NOT: ICE translation error
13 ; DUMP-NOT: SZ 17 ; DUMP-NOT: SZ
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698