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

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

Issue 644143002: Generate a minimal llvm2ice. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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
« Makefile.standalone ('K') | « tests_lit/lit.cfg ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; Tests if we can read binary operators. 1 ; Tests if we can read binary operators.
2 2
3 ; RUN: %p2i -i %s --insts | FileCheck %s 3 ; RUN: %p2i -i %s --insts | FileCheck %s
4 4
5 ; RUN: %minp2i -i %s --insts | FileCheck %s
6
5 ; TODO(kschimpf): add i8/i16. Needs bitcasts. 7 ; TODO(kschimpf): add i8/i16. Needs bitcasts.
6 8
7 define i32 @AddI32(i32 %a, i32 %b) { 9 define i32 @AddI32(i32 %a, i32 %b) {
8 entry: 10 entry:
9 %add = add i32 %b, %a 11 %add = add i32 %b, %a
10 ret i32 %add 12 ret i32 %add
11 } 13 }
12 14
13 ; CHECK: define i32 @AddI32(i32 %a, i32 %b) { 15 ; CHECK: define i32 @AddI32(i32 %a, i32 %b) {
14 ; CHECK-NEXT: entry: 16 ; CHECK-NEXT: entry:
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 entry: 958 entry:
957 %lshr = lshr <4 x i32> %b, %a 959 %lshr = lshr <4 x i32> %b, %a
958 ret <4 x i32> %lshr 960 ret <4 x i32> %lshr
959 } 961 }
960 962
961 ; CHECK-NEXT: define <4 x i32> @LshrV4I32(<4 x i32> %a, <4 x i32> %b) { 963 ; CHECK-NEXT: define <4 x i32> @LshrV4I32(<4 x i32> %a, <4 x i32> %b) {
962 ; CHECK-NEXT: entry: 964 ; CHECK-NEXT: entry:
963 ; CHECK-NEXT: %lshr = lshr <4 x i32> %b, %a 965 ; CHECK-NEXT: %lshr = lshr <4 x i32> %b, %a
964 ; CHECK-NEXT: ret <4 x i32> %lshr 966 ; CHECK-NEXT: ret <4 x i32> %lshr
965 ; CHECK-NEXT: } 967 ; CHECK-NEXT: }
OLDNEW
« Makefile.standalone ('K') | « tests_lit/lit.cfg ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698