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

Side by Side Diff: crosstest/test_cast.h

Issue 2432373002: [SubZero] Fix f64 to/from i64 moves (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addressed review comments Created 4 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 | « no previous file | crosstest/test_cast.cpp » ('j') | src/IceTargetLoweringMIPS32.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/crosstest/test_cast.h - Test prototypes ----------*- C++ -*-===// 1 //===- subzero/crosstest/test_cast.h - Test prototypes ----------*- 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 declares the function prototypes used for crosstesting cast 10 // This file declares the function prototypes used for crosstesting cast
11 // operations. 11 // operations.
12 // 12 //
13 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
14 14
15 // The driver and the test program may be compiled by different 15 // The driver and the test program may be compiled by different
16 // versions of clang, with different standard libraries that have 16 // versions of clang, with different standard libraries that have
17 // different definitions of int8_t. Specifically, int8_t may be 17 // different definitions of int8_t. Specifically, int8_t may be
18 // typedef'd as either 'char' or 'signed char', which mangle to 18 // typedef'd as either 'char' or 'signed char', which mangle to
19 // different strings. Avoid int8_t and use an explicit myint8_t. 19 // different strings. Avoid int8_t and use an explicit myint8_t.
20 typedef signed char myint8_t; 20 typedef signed char myint8_t;
21 21
22 template <typename FromType, typename ToType> ToType cast(FromType a); 22 template <typename FromType, typename ToType> ToType cast(FromType a);
23 template <typename FromType, typename ToType> ToType castBits(FromType a); 23 template <typename FromType, typename ToType> ToType castBits(FromType a);
24 #ifdef MIPS32
Jim Stichnoth 2016/10/21 14:18:56 What do you think about running this set of tests
jaydeep.patil 2016/10/26 07:47:31 Done.
25 template <typename FromType, typename ToType> ToType cast(int i, FromType a);
26 template <typename FromType, typename ToType> ToType castBits(int i,
27 FromType a);
28 #endif
OLDNEW
« no previous file with comments | « no previous file | crosstest/test_cast.cpp » ('j') | src/IceTargetLoweringMIPS32.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698