[llvm] c8279e8 - add ppc_fp128 bitcode writer testcase
Jinsong Ji via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 3 10:18:38 PDT 2021
Author: Jinsong Ji
Date: 2021-06-03T17:18:11Z
New Revision: c8279e8acd3057c935592928c7b933411b60ac05
URL: https://github.com/llvm/llvm-project/commit/c8279e8acd3057c935592928c7b933411b60ac05
DIFF: https://github.com/llvm/llvm-project/commit/c8279e8acd3057c935592928c7b933411b60ac05.diff
LOG: add ppc_fp128 bitcode writer testcase
Added:
llvm/test/CodeGen/PowerPC/ppc_fp128-bcwriter.ll
Modified:
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/PowerPC/ppc_fp128-bcwriter.ll b/llvm/test/CodeGen/PowerPC/ppc_fp128-bcwriter.ll
new file mode 100644
index 0000000000000..7bf361f52d2ae
--- /dev/null
+++ b/llvm/test/CodeGen/PowerPC/ppc_fp128-bcwriter.ll
@@ -0,0 +1,15 @@
+; RUN: llvm-as < %s -o - | llvm-dis - | FileCheck %s
+
+;CHECK-LABEL: main
+;CHECK: store ppc_fp128 0xM0000000000000000000000000000000
+
+define i32 @main() local_unnamed_addr {
+_main_entry:
+ %e3 = alloca ppc_fp128, align 16
+ store ppc_fp128 0xM0000000000000000FFFFFFFFFFFFFFFF, ppc_fp128* %e3, align 16
+ %0 = call i64 @foo( ppc_fp128* nonnull %e3)
+ ret i32 undef
+}
+
+declare i64 @foo(ppc_fp128 *)
+
More information about the llvm-commits
mailing list