summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/f128-arith.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/f128-arith.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/f128-arith.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/f128-arith.ll b/llvm/test/CodeGen/PowerPC/f128-arith.ll
index 534f8f22ebc..5f1296e7b9b 100644
--- a/llvm/test/CodeGen/PowerPC/f128-arith.ll
+++ b/llvm/test/CodeGen/PowerPC/f128-arith.ll
@@ -293,3 +293,17 @@ entry:
ret void
}
declare fp128 @llvm.powi.f128(fp128 %Val, i32 %power)
+
+@a = common global fp128 0xL00000000000000000000000000000000, align 16
+@b = common global fp128 0xL00000000000000000000000000000000, align 16
+
+define fp128 @qp_frem() #0 {
+entry:
+ %0 = load fp128, fp128* @a, align 16
+ %1 = load fp128, fp128* @b, align 16
+ %rem = frem fp128 %0, %1
+ ret fp128 %rem
+; CHECK-LABEL: qp_frem
+; CHECK: bl fmodf128
+; CHECK: blr
+}
OpenPOWER on IntegriCloud