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

Side by Side Diff: tests_lit/llvm2ice_tests/bitcast.ll

Issue 955003002: Subzero: Clean up function header emission. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix the tests that were broken as a result Created 5 years, 10 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/alloc.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 ; Trivial smoke test of bitcast between integer and FP types. 1 ; Trivial smoke test of bitcast between integer and FP types.
2 2
3 ; RUN: %p2i --assemble --disassemble -i %s --args -O2 --verbose none \ 3 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 | FileCheck %s
4 ; RUN: | FileCheck %s 4 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -Om1 | FileCheck %s
5 ; RUN: %p2i --assemble --disassemble -i %s --args -Om1 --verbose none \
6 ; RUN: | FileCheck %s
7 5
8 define internal i32 @cast_f2i(float %f) { 6 define internal i32 @cast_f2i(float %f) {
9 entry: 7 entry:
10 %v0 = bitcast float %f to i32 8 %v0 = bitcast float %f to i32
11 ret i32 %v0 9 ret i32 %v0
12 } 10 }
13 ; CHECK-LABEL: cast_f2i 11 ; CHECK-LABEL: cast_f2i
14 ; CHECK: mov eax 12 ; CHECK: mov eax
15 ; CHECK: ret 13 ; CHECK: ret
16 14
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 define internal double @cast_ll2d_const() { 52 define internal double @cast_ll2d_const() {
55 entry: 53 entry:
56 %v0 = bitcast i64 12345678901234 to double 54 %v0 = bitcast i64 12345678901234 to double
57 ret double %v0 55 ret double %v0
58 } 56 }
59 ; CHECK-LABEL: cast_ll2d_const 57 ; CHECK-LABEL: cast_ll2d_const
60 ; CHECK: mov {{.*}},0x73ce2ff2 58 ; CHECK: mov {{.*}},0x73ce2ff2
61 ; CHECK: mov {{.*}},0xb3a 59 ; CHECK: mov {{.*}},0xb3a
62 ; CHECK: fld QWORD PTR 60 ; CHECK: fld QWORD PTR
63 ; CHECK: ret 61 ; CHECK: ret
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/alloc.ll ('k') | tests_lit/llvm2ice_tests/bool-opt.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698