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

Side by Side Diff: tests_lit/llvm2ice_tests/bitcast.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: Merge changed from Karl's committed CL 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
« no previous file with comments | « tests_lit/llvm2ice_tests/arithmetic-chain.ll ('k') | tests_lit/llvm2ice_tests/bool-opt.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; RUIN: %llvm2ice -verbose inst %s | FileCheck %s 1 ; Trivial smoke test of bitcast between integer and FP types.
2 ; RUIN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s 2
3 ; RUN: %llvm2ice --verbose inst %s | FileCheck %s
4 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s
3 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s 5 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s
4 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ 6 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \
5 ; RUN: | FileCheck --check-prefix=DUMP %s 7 ; RUN: | FileCheck --check-prefix=DUMP %s
6 8
7 define internal i32 @cast_f2i(float %f) { 9 define internal i32 @cast_f2i(float %f) {
8 entry: 10 entry:
9 %v0 = bitcast float %f to i32 11 %v0 = bitcast float %f to i32
12 ; CHECK: bitcast
10 ret i32 %v0 13 ret i32 %v0
11 } 14 }
12 15
13 define internal float @cast_i2f(i32 %i) { 16 define internal float @cast_i2f(i32 %i) {
14 entry: 17 entry:
15 %v0 = bitcast i32 %i to float 18 %v0 = bitcast i32 %i to float
19 ; CHECK: bitcast
16 ret float %v0 20 ret float %v0
17 } 21 }
18 22
19 define internal i64 @cast_d2ll(double %d) { 23 define internal i64 @cast_d2ll(double %d) {
20 entry: 24 entry:
21 %v0 = bitcast double %d to i64 25 %v0 = bitcast double %d to i64
26 ; CHECK: bitcast
22 ret i64 %v0 27 ret i64 %v0
23 } 28 }
24 29
25 define internal double @cast_ll2d(i64 %ll) { 30 define internal double @cast_ll2d(i64 %ll) {
26 entry: 31 entry:
27 %v0 = bitcast i64 %ll to double 32 %v0 = bitcast i64 %ll to double
33 ; CHECK: bitcast
28 ret double %v0 34 ret double %v0
29 } 35 }
30 36
31 ; ERRORS-NOT: ICE translation error 37 ; ERRORS-NOT: ICE translation error
32 ; DUMP-NOT: SZ 38 ; DUMP-NOT: SZ
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/arithmetic-chain.ll ('k') | tests_lit/llvm2ice_tests/bool-opt.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698