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

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

Issue 1387963002: Make sure that all globals are internal, except for "start" functions. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix new tests. Created 5 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
« no previous file with comments | « tests_lit/llvm2ice_tests/fp_const_pool.ll ('k') | tests_lit/llvm2ice_tests/fpconst.pnacl.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 ; Test that for calls returning a floating-point value, the calling 1 ; Test that for calls returning a floating-point value, the calling
2 ; ABI with respect to the x87 floating point stack is honored. In 2 ; ABI with respect to the x87 floating point stack is honored. In
3 ; particular, the top-of-stack must be popped regardless of whether 3 ; particular, the top-of-stack must be popped regardless of whether
4 ; its value is used. 4 ; its value is used.
5 5
6 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 | FileCheck %s 6 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 \
7 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -Om1 | FileCheck %s 7 ; RUN: -allow-externally-defined-symbols | FileCheck %s
8 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -Om1 \
9 ; RUN: -allow-externally-defined-symbols | FileCheck %s
8 10
9 declare float @dummy() 11 declare float @dummy()
10 12
11 ; The call is ignored, but the top of the FP stack still needs to be 13 ; The call is ignored, but the top of the FP stack still needs to be
12 ; popped. 14 ; popped.
13 define i32 @ignored_fp_call() { 15 define i32 @ignored_fp_call() {
14 entry: 16 entry:
15 %ignored = call float @dummy() 17 %ignored = call float @dummy()
16 ret i32 0 18 ret i32 0
17 } 19 }
(...skipping 18 matching lines...) Expand all
36 ; re-pushing, in which case the test would need to be changed. 38 ; re-pushing, in which case the test would need to be changed.
37 define float @returned_fp_call() { 39 define float @returned_fp_call() {
38 entry: 40 entry:
39 %fp = call float @dummy() 41 %fp = call float @dummy()
40 ret float %fp 42 ret float %fp
41 } 43 }
42 ; CHECK-LABEL: returned_fp_call 44 ; CHECK-LABEL: returned_fp_call
43 ; CHECK: call {{.*}} R_{{.*}} dummy 45 ; CHECK: call {{.*}} R_{{.*}} dummy
44 ; CHECK: fstp 46 ; CHECK: fstp
45 ; CHECK: fld 47 ; CHECK: fld
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/fp_const_pool.ll ('k') | tests_lit/llvm2ice_tests/fpconst.pnacl.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698