[llvm] 4ead32d - [PowerPC] update test case using the scripts; nfc
Chen Zheng via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 10 07:41:18 PDT 2021
Author: Chen Zheng
Date: 2021-10-10T14:39:20Z
New Revision: 4ead32d1cf8e08b9e73f09e5f1bf72c236a65596
URL: https://github.com/llvm/llvm-project/commit/4ead32d1cf8e08b9e73f09e5f1bf72c236a65596
DIFF: https://github.com/llvm/llvm-project/commit/4ead32d1cf8e08b9e73f09e5f1bf72c236a65596.diff
LOG: [PowerPC] update test case using the scripts; nfc
Added:
Modified:
llvm/test/CodeGen/PowerPC/byval.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/PowerPC/byval.ll b/llvm/test/CodeGen/PowerPC/byval.ll
index c67cc1022695f..1beec0f1215dd 100644
--- a/llvm/test/CodeGen/PowerPC/byval.ll
+++ b/llvm/test/CodeGen/PowerPC/byval.ll
@@ -17,16 +17,39 @@ declare dso_local void @foo(%struct* %var)
define dso_local i32 @bar() {
; CHECK-LABEL: bar:
-; CHECK: addi 30, 1, 40
-; CHECK: li 3, 16
-; CHECK: lxvd2x 0, 30, 3
-; CHECK: li 3, 48
-; CHECK: stxvd2x 0, 1, 3
-; CHECK: li 3, 32
-; CHECK: lxvd2x 0, 0, 30
-; CHECK: stxvd2x 0, 1, 3
-; CHECK: lwz 3, 72(1)
-; CHECK: stw 3, 64(1)
+; CHECK: # %bb.0: # %entry
+; CHECK-NEXT: mflr 0
+; CHECK-NEXT: .cfi_def_cfa_offset 96
+; CHECK-NEXT: .cfi_offset lr, 16
+; CHECK-NEXT: .cfi_offset r30, -16
+; CHECK-NEXT: std 30, -16(1) # 8-byte Folded Spill
+; CHECK-NEXT: std 0, 16(1)
+; CHECK-NEXT: stdu 1, -96(1)
+; CHECK-NEXT: addi 30, 1, 40
+; CHECK-NEXT: mr 3, 30
+; CHECK-NEXT: bl foo
+; CHECK-NEXT: nop
+; CHECK-NEXT: li 3, 16
+; CHECK-NEXT: lxvd2x 0, 30, 3
+; CHECK-NEXT: li 3, 48
+; CHECK-NEXT: stxvd2x 0, 1, 3
+; CHECK-NEXT: li 3, 32
+; CHECK-NEXT: lxvd2x 0, 0, 30
+; CHECK-NEXT: stxvd2x 0, 1, 3
+; CHECK-NEXT: lwz 3, 72(1)
+; CHECK-NEXT: ld 7, 72(1)
+; CHECK-NEXT: ld 5, 56(1)
+; CHECK-NEXT: ld 4, 48(1)
+; CHECK-NEXT: stw 3, 64(1)
+; CHECK-NEXT: ld 3, 40(1)
+; CHECK-NEXT: ld 6, 64(1)
+; CHECK-NEXT: bl foo1
+; CHECK-NEXT: nop
+; CHECK-NEXT: addi 1, 1, 96
+; CHECK-NEXT: ld 0, 16(1)
+; CHECK-NEXT: ld 30, -16(1) # 8-byte Folded Reload
+; CHECK-NEXT: mtlr 0
+; CHECK-NEXT: blr
entry:
%x = alloca %struct, align 4
call void @foo(%struct* %x)
More information about the llvm-commits
mailing list