| OLD | NEW |
| 1 //===- subzero/runtime/szrt.c - Subzero runtime source ----------*- C++ -*-===// | 1 //===- subzero/runtime/szrt.c - Subzero runtime source ----------*- C++ -*-===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 // | 9 // |
| 10 // This file implements wrappers for particular bitcode instructions | 10 // This file implements wrappers for particular bitcode instructions |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 double __Sz_uitofp_i32_f64(uint32_t Value) { return (double)Value; } | 35 double __Sz_uitofp_i32_f64(uint32_t Value) { return (double)Value; } |
| 36 | 36 |
| 37 double __Sz_uitofp_i64_f64(uint64_t Value) { return (double)Value; } | 37 double __Sz_uitofp_i64_f64(uint64_t Value) { return (double)Value; } |
| 38 | 38 |
| 39 float __Sz_sitofp_i64_f32(int64_t Value) { return (float)Value; } | 39 float __Sz_sitofp_i64_f32(int64_t Value) { return (float)Value; } |
| 40 | 40 |
| 41 double __Sz_sitofp_i64_f64(int64_t Value) { return (double)Value; } | 41 double __Sz_sitofp_i64_f64(int64_t Value) { return (double)Value; } |
| 42 | 42 |
| 43 // Other helper calls emitted by Subzero but not implemented here: | 43 // Other helper calls emitted by Subzero but not implemented here: |
| 44 // Compiler-rt: | 44 // Compiler-rt: |
| 45 // __udivsi3 - udiv i32 |
| 46 // __divsi3 - sdiv i32 |
| 47 // __umodsi3 - urem i32 |
| 48 // __modsi3 - srem i32 |
| 45 // __udivdi3 - udiv i64 | 49 // __udivdi3 - udiv i64 |
| 46 // __divdi3 - sdiv i64 | 50 // __divdi3 - sdiv i64 |
| 47 // __umoddi3 - urem i64 | 51 // __umoddi3 - urem i64 |
| 48 // __moddi3 - srem i64 | 52 // __moddi3 - srem i64 |
| 49 // __popcountsi2 - call @llvm.ctpop.i32 | 53 // __popcountsi2 - call @llvm.ctpop.i32 |
| 50 // __popcountdi2 - call @llvm.ctpop.i64 | 54 // __popcountdi2 - call @llvm.ctpop.i64 |
| 51 // libm: | 55 // libm: |
| 52 // fmodf - frem f32 | 56 // fmodf - frem f32 |
| 53 // fmod - frem f64 | 57 // fmod - frem f64 |
| 54 // libc: | 58 // libc: |
| 55 // setjmp - call @llvm.nacl.setjmp | 59 // setjmp - call @llvm.nacl.setjmp |
| 56 // longjmp - call @llvm.nacl.longjmp | 60 // longjmp - call @llvm.nacl.longjmp |
| 57 // memcpy - call @llvm.memcpy.p0i8.p0i8.i32 | 61 // memcpy - call @llvm.memcpy.p0i8.p0i8.i32 |
| 58 // memmove - call @llvm.memmove.p0i8.p0i8.i32 | 62 // memmove - call @llvm.memmove.p0i8.p0i8.i32 |
| 59 // memset - call @llvm.memset.p0i8.i32 | 63 // memset - call @llvm.memset.p0i8.i32 |
| 60 // unsandboxed_irt: | 64 // unsandboxed_irt: |
| 61 // __nacl_read_tp | 65 // __nacl_read_tp |
| OLD | NEW |