xref: /aosp_15_r20/external/llvm/test/CodeGen/PowerPC/ppcf128-1-opt.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s > %t
2*9880d681SAndroid Build Coastguard Worker; ModuleID = '<stdin>'
3*9880d681SAndroid Build Coastguard Workertarget 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-f128:64:128"
4*9880d681SAndroid Build Coastguard Workertarget triple = "powerpc-apple-darwin8"
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine ppc_fp128 @plus(ppc_fp128 %x, ppc_fp128 %y) {
7*9880d681SAndroid Build Coastguard Workerentry:
8*9880d681SAndroid Build Coastguard Worker	%tmp3 = fadd ppc_fp128 %x, %y		; <ppc_fp128> [#uses=1]
9*9880d681SAndroid Build Coastguard Worker	ret ppc_fp128 %tmp3
10*9880d681SAndroid Build Coastguard Worker}
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Workerdefine ppc_fp128 @minus(ppc_fp128 %x, ppc_fp128 %y) {
13*9880d681SAndroid Build Coastguard Workerentry:
14*9880d681SAndroid Build Coastguard Worker	%tmp3 = fsub ppc_fp128 %x, %y		; <ppc_fp128> [#uses=1]
15*9880d681SAndroid Build Coastguard Worker	ret ppc_fp128 %tmp3
16*9880d681SAndroid Build Coastguard Worker}
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Workerdefine ppc_fp128 @times(ppc_fp128 %x, ppc_fp128 %y) {
19*9880d681SAndroid Build Coastguard Workerentry:
20*9880d681SAndroid Build Coastguard Worker	%tmp3 = fmul ppc_fp128 %x, %y		; <ppc_fp128> [#uses=1]
21*9880d681SAndroid Build Coastguard Worker	ret ppc_fp128 %tmp3
22*9880d681SAndroid Build Coastguard Worker}
23*9880d681SAndroid Build Coastguard Worker
24*9880d681SAndroid Build Coastguard Workerdefine ppc_fp128 @divide(ppc_fp128 %x, ppc_fp128 %y) {
25*9880d681SAndroid Build Coastguard Workerentry:
26*9880d681SAndroid Build Coastguard Worker	%tmp3 = fdiv ppc_fp128 %x, %y		; <ppc_fp128> [#uses=1]
27*9880d681SAndroid Build Coastguard Worker	ret ppc_fp128 %tmp3
28*9880d681SAndroid Build Coastguard Worker}
29*9880d681SAndroid Build Coastguard Worker
30