Skip to content

Commit

Permalink
[MachineCopyPropagation] Pre-commit test case
Browse files Browse the repository at this point in the history
  • Loading branch information
DianQK committed Dec 7, 2023
1 parent 13b8826 commit 5a5ade3
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions llvm/test/CodeGen/AArch64/machine-cp-undef.mir
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 4
# RUN: llc -o - %s -O3 --run-pass=machine-cp -mcp-use-is-copy-instr -mtriple=arm64-apple-macos -mcpu=apple-m1 --verify-machineinstrs | FileCheck %s

---
name: test
tracksRegLiveness: true
body: |
; CHECK-LABEL: name: test
; CHECK: bb.0:
; CHECK-NEXT: successors: %bb.1(0x80000000)
; CHECK-NEXT: liveins: $w0
; CHECK-NEXT: {{ $}}
; CHECK-NEXT: $x8 = ORRXrs $xzr, $x0, 0, implicit $w0
; CHECK-NEXT: {{ $}}
; CHECK-NEXT: bb.1:
; CHECK-NEXT: liveins: $x8
; CHECK-NEXT: {{ $}}
; CHECK-NEXT: $x0 = ADDXri $x8, 1, 0
; CHECK-NEXT: RET undef $lr, implicit $x0
bb.0:
successors: %bb.1(0x80000000)
liveins: $w0
$x8 = ORRXrs $xzr, undef $x0, 0, implicit $w0
$w8 = ORRWrs $wzr, $w0, 0, implicit-def $x8
bb.1:
liveins: $x8
$x0 = ADDXri $x8, 1, 0
RET undef $lr, implicit $x0
...

0 comments on commit 5a5ade3

Please sign in to comment.