summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorPirama Arumuga Nainar <pirama@google.com>2016-03-24 13:56:13 -0700
committerPirama Arumuga Nainar <pirama@google.com>2016-03-24 14:28:58 -0700
commitf515ce0b076986593622d81f4b6c1f3fac91a03f (patch)
tree2c79bdb7fec34114f0c5648c5979f2361ad3bbae /driver
parent48cee1bf1e3ea8fa24d436ae5c1195c1877ea9f4 (diff)
downloadrs-f515ce0b076986593622d81f4b6c1f3fac91a03f.tar.gz
Revert WARS related to __truncxfhf2
Bug: http://b/26165616 Bug: http://b/23535482 Revert "Add __truncxfhf2() to libclcore_g.bc as well on x86 targets." This reverts commit 53f2796ad6c7487c298b49b62a0ea36ac95c54e5. Revert "Implement __truncxfhf2 in driver/runtime" This reverts commit d68b3c3a1ffa365e6be78afe74b3bf02bae3834d. (cherry picked from commit 3276e6d5fd86ef7b9a6e7b8c89922757da5d23ad)
Diffstat (limited to 'driver')
-rwxr-xr-xdriver/runtime/Android.mk4
-rw-r--r--driver/runtime/arch/x86_trunc.ll11
2 files changed, 1 insertions, 14 deletions
diff --git a/driver/runtime/Android.mk b/driver/runtime/Android.mk
index 9720f06c..8db43945 100755
--- a/driver/runtime/Android.mk
+++ b/driver/runtime/Android.mk
@@ -69,8 +69,7 @@ clcore_x86_files := \
$(clcore_base_files) \
arch/generic.c \
arch/x86_sse2.ll \
- arch/x86_sse3.ll \
- arch/x86_trunc.ll
+ arch/x86_sse3.ll
# Grab the current value for $(RS_VERSION_DEFINE)
include frameworks/compile/slang/rs_version.mk
@@ -151,7 +150,6 @@ rs_g_runtime := 1
LOCAL_CFLAGS += $(clcore_cflags)
LOCAL_CFLAGS += -g -O0
LOCAL_SRC_FILES := $(clcore_base_files) $(clcore_g_files)
-LOCAL_SRC_FILES_x86 := arch/x86_trunc.ll
LOCAL_SRC_FILES_32 := arch/generic.c
ifeq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),arm64))
diff --git a/driver/runtime/arch/x86_trunc.ll b/driver/runtime/arch/x86_trunc.ll
deleted file mode 100644
index f8c1060a..00000000
--- a/driver/runtime/arch/x86_trunc.ll
+++ /dev/null
@@ -1,11 +0,0 @@
-target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32-S128"
-target triple = "i686-unknown-linux"
-
-; http://b/26165616 - As a WAR for this bug, define __truncxfhf2. Note that
-; this exhibits the double-rounding problem. This WAR will be removed once
-; a proper implementation is added to compiler-rt.
-define half @__truncxfhf2(x86_fp80 %v1) nounwind readnone alwaysinline {
- %1 = fptrunc x86_fp80 %v1 to float
- %2 = fptrunc float %1 to half
- ret half %2
-}