summaryrefslogtreecommitdiff
path: root/libclc/ptx/lib/integer/add_sat.ll
blob: 9b8311cfb9ce9158f5359fec0d864e37e132b701 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
declare i8 @__clc_add_sat_impl_s8(i8 %x, i8 %y)

define linkonce_odr 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 linkonce_odr 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 linkonce_odr 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 linkonce_odr 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 linkonce_odr 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 linkonce_odr 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 linkonce_odr 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 linkonce_odr 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
}