Home | History | Annotate | Download | only in AArch64

Lines Matching full:fp128

3 @lhs = global fp128 zeroinitializer, align 16
4 @rhs = global fp128 zeroinitializer, align 16
6 define fp128 @test_add() {
9 %lhs = load fp128, fp128* @lhs, align 16
10 %rhs = load fp128, fp128* @rhs, align 16
14 %val = fadd fp128 %lhs, %rhs
16 ret fp128 %val
19 define fp128 @test_sub() {
22 %lhs = load fp128, fp128* @lhs, align 16
23 %rhs = load fp128, fp128* @rhs, align 16
27 %val = fsub fp128 %lhs, %rhs
29 ret fp128 %val
32 define fp128 @test_mul() {
35 %lhs = load fp128, fp128* @lhs, align 16
36 %rhs = load fp128, fp128* @rhs, align 16
40 %val = fmul fp128 %lhs, %rhs
42 ret fp128 %val
45 define fp128 @test_div() {
48 %lhs = load fp128, fp128* @lhs, align 16
49 %rhs = load fp128, fp128* @rhs, align 16
53 %val = fdiv fp128 %lhs, %rhs
55 ret fp128 %val
63 %val = load fp128, fp128* @lhs, align 16
65 %val32 = fptosi fp128 %val to i32
69 %val64 = fptosi fp128 %val to i64
78 %val = load fp128, fp128* @lhs, align 16
80 %val32 = fptoui fp128 %val to i32
84 %val64 = fptoui fp128 %val to i64
95 %val32 = sitofp i32 %src32 to fp128
96 store volatile fp128 %val32, fp128* @lhs
100 %val64 = sitofp i64 %src64 to fp128
101 store volatile fp128 %val64, fp128* @lhs
111 %val32 = uitofp i32 %src32 to fp128
112 store volatile fp128 %val32, fp128* @lhs
116 %val64 = uitofp i64 %src64 to fp128
117 store volatile fp128 %val64, fp128* @lhs
126 %lhs = load fp128, fp128* @lhs, align 16
127 %rhs = load fp128, fp128* @rhs, align 16
133 %val = fcmp ole fp128 %lhs, %rhs
145 %lhs = load fp128, fp128* @lhs, align 16
146 %rhs = load fp128, fp128* @rhs, align 16
150 %val = fcmp ugt fp128 %lhs, %rhs
162 %lhs = load fp128, fp128* @lhs, align 16
163 %rhs = load fp128, fp128* @rhs, align 16
168 %cond = fcmp olt fp128 %lhs, %rhs
185 define void @test_select(i1 %cond, fp128 %lhs, fp128 %rhs) {
188 %val = select i1 %cond, fp128 %lhs, fp128 %rhs
189 store fp128 %val, fp128* @lhs, align 16
206 %val = load fp128, fp128* @lhs, align 16
208 %float = fptrunc fp128 %val to float
213 %double = fptrunc fp128 %val to double
224 %val = load fp128, fp128* @lhs, align 16
227 %fromfloat = fpext float %float to fp128
228 store volatile fp128 %fromfloat, fp128* @lhs, align 16
233 %fromdouble = fpext double %double to fp128
234 store volatile fp128 %fromdouble, fp128* @lhs, align 16
242 define fp128 @test_neg(fp128 %in) {
245 ; CHECK-NEXT: fp128 -0
251 %ret = fsub fp128 0xL00000000000000008000000000000000, %in
256 ret fp128 %ret