[llvm] c7d27f9 - [ORE][AsmPrinter] add testcase for D113173; NFC
Chen Zheng via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 7 17:51:15 PST 2021
Author: Chen Zheng
Date: 2021-11-08T01:47:22Z
New Revision: c7d27f90e7c8127466ebce9ab9ed46a4816dc73d
URL: https://github.com/llvm/llvm-project/commit/c7d27f90e7c8127466ebce9ab9ed46a4816dc73d
DIFF: https://github.com/llvm/llvm-project/commit/c7d27f90e7c8127466ebce9ab9ed46a4816dc73d.diff
LOG: [ORE][AsmPrinter] add testcase for D113173; NFC
Added:
llvm/test/CodeGen/PowerPC/instruction-mix-remarks-BCTRL_LWZinto_toc.ll
Modified:
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/PowerPC/instruction-mix-remarks-BCTRL_LWZinto_toc.ll b/llvm/test/CodeGen/PowerPC/instruction-mix-remarks-BCTRL_LWZinto_toc.ll
new file mode 100644
index 0000000000000..b28515e7ffb42
--- /dev/null
+++ b/llvm/test/CodeGen/PowerPC/instruction-mix-remarks-BCTRL_LWZinto_toc.ll
@@ -0,0 +1,17 @@
+
+; RUN: llc -verify-machineinstrs -mattr=-altivec -mtriple powerpc64-ibm-aix-xcoff \
+; RUN: -pass-remarks-output=%t -pass-remarks=asm-printer -mcpu=pwr4 -o - %s
+; RUN: FileCheck --input-file=%t %s
+
+; CHECK: - String: "\n"
+; CHECK: - String: "bctrl\n\tld 2, "
+; CHECK: - String: ': '
+; CHECK: - INST_bctrl
+; CHECK: ld 2,: '1'
+; CHECK: - String: "\n"
+
+
+define void @callThroughPtrWithArgs(void (i32, i16, i64)* nocapture) {
+ tail call void %0(i32 signext 1, i16 zeroext 2, i64 3)
+ ret void
+}
More information about the llvm-commits
mailing list