[ORE][AsmPrinter] add testcase for D113173; NFC
authorChen Zheng <czhengsz@cn.ibm.com>
Thu, 4 Nov 2021 07:39:29 +0000 (07:39 +0000)
committerChen Zheng <czhengsz@cn.ibm.com>
Mon, 8 Nov 2021 01:47:22 +0000 (01:47 +0000)
llvm/test/CodeGen/PowerPC/instruction-mix-remarks-BCTRL_LWZinto_toc.ll [new file with mode: 0644]

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 (file)
index 0000000..b28515e
--- /dev/null
@@ -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
+}