Lines Matching refs:i8
4 declare {i8, i1} @llvm.uadd.with.overflow.i8(i8, i8)
5 declare {i8, i1} @llvm.usub.with.overflow.i8(i8, i8)
6 declare {i8, i1} @llvm.umul.with.overflow.i8(i8, i8)
8 declare {i8, i1} @llvm.sadd.with.overflow.i8(i8, i8)
9 declare {i8, i1} @llvm.ssub.with.overflow.i8(i8, i8)
10 declare {i8, i1} @llvm.smul.with.overflow.i8(i8, i8)
16 define {i8, i1} @uadd_1() nounwind {
18 %t = call {i8, i1} @llvm.uadd.with.overflow.i8(i8 42, i8 100)
19 ret {i8, i1} %t
22 ; CHECK: ret { i8, i1 } { i8 -114, i1 false }
25 define {i8, i1} @uadd_2() nounwind {
27 %t = call {i8, i1} @llvm.uadd.with.overflow.i8(i8 142, i8 120)
28 ret {i8, i1} %t
31 ; CHECK: ret { i8, i1 } { i8 6, i1 true }
38 define {i8, i1} @usub_1() nounwind {
40 %t = call {i8, i1} @llvm.usub.with.overflow.i8(i8 4, i8 2)
41 ret {i8, i1} %t
44 ; CHECK: ret { i8, i1 } { i8 2, i1 false }
47 define {i8, i1} @usub_2() nounwind {
49 %t = call {i8, i1} @llvm.usub.with.overflow.i8(i8 4, i8 6)
50 ret {i8, i1} %t
53 ; CHECK: ret { i8, i1 } { i8 -2, i1 true }
60 define {i8, i1} @umul_1() nounwind {
62 %t = call {i8, i1} @llvm.umul.with.overflow.i8(i8 100, i8 3)
63 ret {i8, i1} %t
66 ; CHECK: ret { i8, i1 } { i8 44, i1 true }
69 define {i8, i1} @umul_2() nounwind {
71 %t = call {i8, i1} @llvm.umul.with.overflow.i8(i8 100, i8 2)
72 ret {i8, i1} %t
75 ; CHECK: ret { i8, i1 } { i8 -56, i1 false }
82 define {i8, i1} @sadd_1() nounwind {
84 %t = call {i8, i1} @llvm.sadd.with.overflow.i8(i8 42, i8 2)
85 ret {i8, i1} %t
88 ; CHECK: ret { i8, i1 } { i8 44, i1 false }
91 define {i8, i1} @sadd_2() nounwind {
93 %t = call {i8, i1} @llvm.sadd.with.overflow.i8(i8 120, i8 10)
94 ret {i8, i1} %t
97 ; CHECK: ret { i8, i1 } { i8 -126, i1 true }
100 define {i8, i1} @sadd_3() nounwind {
102 %t = call {i8, i1} @llvm.sadd.with.overflow.i8(i8 -120, i8 10)
103 ret {i8, i1} %t
106 ; CHECK: ret { i8, i1 } { i8 -110, i1 false }
109 define {i8, i1} @sadd_4() nounwind {
111 %t = call {i8, i1} @llvm.sadd.with.overflow.i8(i8 -120, i8 -10)
112 ret {i8, i1} %t
115 ; CHECK: ret { i8, i1 } { i8 126, i1 true }
118 define {i8, i1} @sadd_5() nounwind {
120 %t = call {i8, i1} @llvm.sadd.with.overflow.i8(i8 2, i8 -10)
121 ret {i8, i1} %t
124 ; CHECK: ret { i8, i1 } { i8 -8, i1 false }
132 define {i8, i1} @ssub_1() nounwind {
134 %t = call {i8, i1} @llvm.ssub.with.overflow.i8(i8 4, i8 2)
135 ret {i8, i1} %t
138 ; CHECK: ret { i8, i1 } { i8 2, i1 false }
141 define {i8, i1} @ssub_2() nounwind {
143 %t = call {i8, i1} @llvm.ssub.with.overflow.i8(i8 4, i8 6)
144 ret {i8, i1} %t
147 ; CHECK: ret { i8, i1 } { i8 -2, i1 false }
150 define {i8, i1} @ssub_3() nounwind {
152 %t = call {i8, i1} @llvm.ssub.with.overflow.i8(i8 -10, i8 120)
153 ret {i8, i1} %t
156 ; CHECK: ret { i8, i1 } { i8 126, i1 true }
159 define {i8, i1} @ssub_3b() nounwind {
161 %t = call {i8, i1} @llvm.ssub.with.overflow.i8(i8 -10, i8 10)
162 ret {i8, i1} %t
165 ; CHECK: ret { i8, i1 } { i8 -20, i1 false }
168 define {i8, i1} @ssub_4() nounwind {
170 %t = call {i8, i1} @llvm.ssub.with.overflow.i8(i8 120, i8 -10)
171 ret {i8, i1} %t
174 ; CHECK: ret { i8, i1 } { i8 -126, i1 true }
177 define {i8, i1} @ssub_4b() nounwind {
179 %t = call {i8, i1} @llvm.ssub.with.overflow.i8(i8 20, i8 -10)
180 ret {i8, i1} %t
183 ; CHECK: ret { i8, i1 } { i8 30, i1 false }
186 define {i8, i1} @ssub_5() nounwind {
188 %t = call {i8, i1} @llvm.ssub.with.overflow.i8(i8 -20, i8 -10)
189 ret {i8, i1} %t
192 ; CHECK: ret { i8, i1 } { i8 -10, i1 false }
200 define {i8, i1} @smul_1() nounwind {
202 %t = call {i8, i1} @llvm.smul.with.overflow.i8(i8 -20, i8 -10)
203 ret {i8, i1} %t
206 ; CHECK: ret { i8, i1 } { i8 -56, i1 true }