summaryrefslogtreecommitdiffstats
path: root/libclc/ptx/lib
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2017-10-02 18:39:00 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2017-10-02 18:39:00 +0000
commit1964df8fada920fbc456317ee0d043fbb3733005 (patch)
treec4035bc509577fd7e444a62220816a5e1309edf2 /libclc/ptx/lib
parent943057a2885a0d886de142a2a9beb227ca78ba23 (diff)
downloadbcm5719-llvm-1964df8fada920fbc456317ee0d043fbb3733005.tar.gz
bcm5719-llvm-1964df8fada920fbc456317ee0d043fbb3733005.zip
integer/add_sat: Use clang builtin instead of llvm asm
reviewer: Tom Stellard Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 314702
Diffstat (limited to 'libclc/ptx/lib')
-rw-r--r--libclc/ptx/lib/OVERRIDES1
-rw-r--r--libclc/ptx/lib/SOURCES3
-rw-r--r--libclc/ptx/lib/integer/add_sat.ll55
3 files changed, 1 insertions, 58 deletions
diff --git a/libclc/ptx/lib/OVERRIDES b/libclc/ptx/lib/OVERRIDES
index 475162c97cd..565dcca63b5 100644
--- a/libclc/ptx/lib/OVERRIDES
+++ b/libclc/ptx/lib/OVERRIDES
@@ -1,2 +1 @@
-integer/add_sat_if.ll
integer/sub_sat_if.ll
diff --git a/libclc/ptx/lib/SOURCES b/libclc/ptx/lib/SOURCES
index fb6e17fbc69..913e2ea737b 100644
--- a/libclc/ptx/lib/SOURCES
+++ b/libclc/ptx/lib/SOURCES
@@ -1,2 +1 @@
-integer/add_sat.ll
-integer/sub_sat.ll \ No newline at end of file
+integer/sub_sat.ll
diff --git a/libclc/ptx/lib/integer/add_sat.ll b/libclc/ptx/lib/integer/add_sat.ll
deleted file mode 100644
index f887962c8a4..00000000000
--- a/libclc/ptx/lib/integer/add_sat.ll
+++ /dev/null
@@ -1,55 +0,0 @@
-declare i8 @__clc_add_sat_impl_s8(i8 %x, i8 %y)
-
-define ptx_device i8 @__clc_add_sat_s8(i8 %x, i8 %y) nounwind readnone alwaysinline {
- %call = call i8 @__clc_add_sat_impl_s8(i8 %x, i8 %y)
- ret i8 %call
-}
-
-declare i8 @__clc_add_sat_impl_u8(i8 %x, i8 %y)
-
-define ptx_device i8 @__clc_add_sat_u8(i8 %x, i8 %y) nounwind readnone alwaysinline {
- %call = call i8 @__clc_add_sat_impl_u8(i8 %x, i8 %y)
- ret i8 %call
-}
-
-declare i16 @__clc_add_sat_impl_s16(i16 %x, i16 %y)
-
-define ptx_device i16 @__clc_add_sat_s16(i16 %x, i16 %y) nounwind readnone alwaysinline {
- %call = call i16 @__clc_add_sat_impl_s16(i16 %x, i16 %y)
- ret i16 %call
-}
-
-declare i16 @__clc_add_sat_impl_u16(i16 %x, i16 %y)
-
-define ptx_device i16 @__clc_add_sat_u16(i16 %x, i16 %y) nounwind readnone alwaysinline {
- %call = call i16 @__clc_add_sat_impl_u16(i16 %x, i16 %y)
- ret i16 %call
-}
-
-declare i32 @__clc_add_sat_impl_s32(i32 %x, i32 %y)
-
-define ptx_device i32 @__clc_add_sat_s32(i32 %x, i32 %y) nounwind readnone alwaysinline {
- %call = call i32 @__clc_add_sat_impl_s32(i32 %x, i32 %y)
- ret i32 %call
-}
-
-declare i32 @__clc_add_sat_impl_u32(i32 %x, i32 %y)
-
-define ptx_device i32 @__clc_add_sat_u32(i32 %x, i32 %y) nounwind readnone alwaysinline {
- %call = call i32 @__clc_add_sat_impl_u32(i32 %x, i32 %y)
- ret i32 %call
-}
-
-declare i64 @__clc_add_sat_impl_s64(i64 %x, i64 %y)
-
-define ptx_device i64 @__clc_add_sat_s64(i64 %x, i64 %y) nounwind readnone alwaysinline {
- %call = call i64 @__clc_add_sat_impl_s64(i64 %x, i64 %y)
- ret i64 %call
-}
-
-declare i64 @__clc_add_sat_impl_u64(i64 %x, i64 %y)
-
-define ptx_device i64 @__clc_add_sat_u64(i64 %x, i64 %y) nounwind readnone alwaysinline {
- %call = call i64 @__clc_add_sat_impl_u64(i64 %x, i64 %y)
- ret i64 %call
-}
OpenPOWER on IntegriCloud