diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2016-03-24 22:33:57 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2016-03-24 22:33:57 +0000 |
commit | ff6c356c4166ad461c2a1be3f8ac57a0da972daf (patch) | |
tree | 5cc2daefa20989148aee0c74d6d6c002f017f7e2 /driver | |
parent | 6d5f43306f89d04739e7b1a71b338487471ef3a3 (diff) | |
parent | f515ce0b076986593622d81f4b6c1f3fac91a03f (diff) | |
download | rs-ff6c356c4166ad461c2a1be3f8ac57a0da972daf.tar.gz |
Merge "Revert WARS related to __truncxfhf2" into nyc-dev
Diffstat (limited to 'driver')
-rwxr-xr-x | driver/runtime/Android.mk | 4 | ||||
-rw-r--r-- | driver/runtime/arch/x86_trunc.ll | 11 |
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 -} |