OSDN Git Service

Subzero: Use cvttss2si and similar instead of cvtss2si for fp->int casts.
authorJim Stichnoth <stichnot@chromium.org>
Mon, 8 Sep 2014 17:47:23 +0000 (10:47 -0700)
committerJim Stichnoth <stichnot@chromium.org>
Mon, 8 Sep 2014 17:47:23 +0000 (10:47 -0700)
commitb63cd886c9d2d2e351d1da16570fd311415156b5
tree703713ec59de682d8e7fa9967b3186578f16f732
parentc836acb8d43c41d3d1d840d35446ec61ef7bf981
Subzero: Use cvttss2si and similar instead of cvtss2si for fp->int casts.

This is the truncating cvt instruction instead of rounding.

A few interesting floating point inputs are added to the cross tests.

Also, the cross test error output is modified to be more clear.

BUG= none
R=jvoung@chromium.org

Review URL: https://codereview.chromium.org/550723002
crosstest/test_cast_main.cpp
src/IceInstX8632.cpp
src/IceInstX8632.h
src/IceTargetLoweringX8632.cpp
src/IceTargetLoweringX8632.h
tests_lit/llvm2ice_tests/fp.pnacl.ll
tests_lit/llvm2ice_tests/vector-cast.ll