[PowerPC] update test case using the scripts; nfc

This commit is contained in:
Chen Zheng 2021-10-10 14:39:20 +00:00
parent dcbfceffde
commit 4ead32d1cf
1 changed files with 33 additions and 10 deletions

View File

@ -17,16 +17,39 @@ declare dso_local void @foo(%struct* %var)
define dso_local i32 @bar() { define dso_local i32 @bar() {
; CHECK-LABEL: bar: ; CHECK-LABEL: bar:
; CHECK: addi 30, 1, 40 ; CHECK: # %bb.0: # %entry
; CHECK: li 3, 16 ; CHECK-NEXT: mflr 0
; CHECK: lxvd2x 0, 30, 3 ; CHECK-NEXT: .cfi_def_cfa_offset 96
; CHECK: li 3, 48 ; CHECK-NEXT: .cfi_offset lr, 16
; CHECK: stxvd2x 0, 1, 3 ; CHECK-NEXT: .cfi_offset r30, -16
; CHECK: li 3, 32 ; CHECK-NEXT: std 30, -16(1) # 8-byte Folded Spill
; CHECK: lxvd2x 0, 0, 30 ; CHECK-NEXT: std 0, 16(1)
; CHECK: stxvd2x 0, 1, 3 ; CHECK-NEXT: stdu 1, -96(1)
; CHECK: lwz 3, 72(1) ; CHECK-NEXT: addi 30, 1, 40
; CHECK: stw 3, 64(1) ; 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: entry:
%x = alloca %struct, align 4 %x = alloca %struct, align 4
call void @foo(%struct* %x) call void @foo(%struct* %x)