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

Side by Side Diff: tests_lit/reader_tests/load.ll

Issue 600043002: Clean up run script to use for testing Subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fixes for rebase from master. Created 6 years, 2 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 if we can read load instructions. 1 ; Test if we can read load instructions.
2 2
3 ; RUN: llvm-as < %s | pnacl-freeze \ 3 ; RUN: %p2i --no-local-syms -i %s --insts | FileCheck %s
4 ; RUN: | %llvm2ice -notranslate -verbose=inst -build-on-read \
5 ; RUN: -allow-pnacl-reader-error-recovery \
6 ; RUN: | FileCheck %s
7 4
8 define i32 @load_i8(i32 %addr) { 5 define i32 @load_i8(i32 %addr) {
9 entry: 6 entry:
10 %addr_i8 = inttoptr i32 %addr to i8* 7 %addr_i8 = inttoptr i32 %addr to i8*
11 %v = load i8* %addr_i8, align 1 8 %v = load i8* %addr_i8, align 1
12 %r = sext i8 %v to i32 9 %r = sext i8 %v to i32
13 ret i32 %r 10 ret i32 %r
14 11
15 ; CHECK: __0: 12 ; CHECK: __0:
16 ; CHECK-NEXT: %__1 = load i8* %__0, align 1 13 ; CHECK-NEXT: %__1 = load i8* %__0, align 1
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 entry: 137 entry:
141 %addr_v4xFloat = inttoptr i32 %addr to <4 x float>* 138 %addr_v4xFloat = inttoptr i32 %addr to <4 x float>*
142 %v = load <4 x float>* %addr_v4xFloat, align 4 139 %v = load <4 x float>* %addr_v4xFloat, align 4
143 ret <4 x float> %v 140 ret <4 x float> %v
144 141
145 ; CHECK: __0: 142 ; CHECK: __0:
146 ; CHECK-NEXT: %__1 = load <4 x float>* %__0, align 4 143 ; CHECK-NEXT: %__1 = load <4 x float>* %__0, align 4
147 ; CHECK-NEXT: ret <4 x float> %__1 144 ; CHECK-NEXT: ret <4 x float> %__1
148 } 145 }
149 146
OLDNEW
« no previous file with comments | « tests_lit/reader_tests/insertextract.ll ('k') | tests_lit/reader_tests/nacl-atomic-intrinsics.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698