Skip to content

[PowerPC] Change registers used in test due to ABI breakage. NFC. #70758

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions llvm/test/CodeGen/PowerPC/ldst-16-byte-asm-aix.mir
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# RUN: llc -simplify-mir -verify-machineinstrs -mtriple=powerpc64-ibm-aix-xcoff \
# RUN: %s -o - | FileCheck %s

---
name: foo
alignment: 8
tracksRegLiveness: true
body: |
bb.0.entry:
liveins: $x3, $x4, $x5, $x6
; CHECK-LABEL: .foo
; CHECK: lq 2, 128(4)
; CHECK: lqarx 28, 5, 6
; CHECK: stqcx. 28, 5, 6
; CHECK: stq 2, 128(4)
$g8p1 = LQ 128, $x4
$g8p14 = LQARX $x5, $x6
STQCX $g8p14, $x5, $x6, implicit-def $cr0
STQ $g8p1, 128, $x4
$x3 = COPY $x6
BLR8 implicit $lr8, implicit undef $rm, implicit $x3
...

16 changes: 8 additions & 8 deletions llvm/test/CodeGen/PowerPC/ldst-16-byte-asm.mir
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RUN: llc -simplify-mir -verify-machineinstrs -mtriple=powerpc64-ibm-aix-xcoff \
# RUN: llc -simplify-mir -verify-machineinstrs -mtriple=powerpc64-unknown-unknown \
# RUN: %s -o - | FileCheck %s

---
Expand All @@ -7,17 +7,17 @@ alignment: 8
tracksRegLiveness: true
body: |
bb.0.entry:
liveins: $x3, $x4, $x30, $x31
; CHECK-LABEL: .foo
liveins: $x3, $x4, $x5, $x6
; CHECK-LABEL: foo
; CHECK: lq 2, 128(4)
; CHECK: lqarx 28, 30, 31
; CHECK: stqcx. 28, 30, 31
; CHECK: lqarx 28, 5, 6
; CHECK: stqcx. 28, 5, 6
; CHECK: stq 2, 128(4)
$g8p1 = LQ 128, $x4
$g8p14 = LQARX $x30, $x31
STQCX $g8p14, $x30, $x31, implicit-def $cr0
$g8p14 = LQARX $x5, $x6
STQCX $g8p14, $x5, $x6, implicit-def $cr0
STQ $g8p1, 128, $x4
$x3 = COPY $x31
$x3 = COPY $x6
BLR8 implicit $lr8, implicit undef $rm, implicit $x3
...