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

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

Issue 696383004: Disable Subzero IR generation for performance testing. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix issues in patch set 2, and add tests. Created 6 years, 1 month 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 ; Tests if we can read cast operations. 1 ; Tests if we can read cast operations.
2 2
3 ; RUN: %p2i -i %s --insts --no-local-syms | FileCheck %s 3 ; RUN: %p2i -i %s --insts --no-local-syms | FileCheck %s
4 ; RUN: %p2i -i %s --args -notranslate -timing -noIRgen \
5 ; RUN: | %if --need=allow_disable_ir_gen \
6 ; RUN: --command FileCheck --check-prefix=NOIR %s
4 7
5 ; TODO(kschimpf) Find way to test pointer conversions (since they in general 8 ; TODO(kschimpf) Find way to test pointer conversions (since they in general
6 ; get removed by pnacl-freeze). 9 ; get removed by pnacl-freeze).
7 10
8 define i32 @TruncI64(i64 %v) { 11 define i32 @TruncI64(i64 %v) {
9 %v1 = trunc i64 %v to i1 12 %v1 = trunc i64 %v to i1
10 %v8 = trunc i64 %v to i8 13 %v8 = trunc i64 %v to i8
11 %v16 = trunc i64 %v to i16 14 %v16 = trunc i64 %v to i16
12 %v32 = trunc i64 %v to i32 15 %v32 = trunc i64 %v to i32
13 ret i32 %v32 16 ret i32 %v32
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 ret void 528 ret void
526 } 529 }
527 530
528 ; CHECK-NEXT: define void @BitcastV16xi8(<16 x i8> %__0) { 531 ; CHECK-NEXT: define void @BitcastV16xi8(<16 x i8> %__0) {
529 ; CHECK-NEXT: __0: 532 ; CHECK-NEXT: __0:
530 ; CHECK-NEXT: %__1 = bitcast <16 x i8> %__0 to <4 x float> 533 ; CHECK-NEXT: %__1 = bitcast <16 x i8> %__0 to <4 x float>
531 ; CHECK-NEXT: %__2 = bitcast <16 x i8> %__0 to <4 x i32> 534 ; CHECK-NEXT: %__2 = bitcast <16 x i8> %__0 to <4 x i32>
532 ; CHECK-NEXT: %__3 = bitcast <16 x i8> %__0 to <8 x i16> 535 ; CHECK-NEXT: %__3 = bitcast <16 x i8> %__0 to <8 x i16>
533 ; CHECK-NEXT: ret void 536 ; CHECK-NEXT: ret void
534 ; CHECK-NEXT: } 537 ; CHECK-NEXT: }
538
539 ; NOIR: Total across all functions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698