forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AArch64] ORRWrs is copy instruction when there's no implicit def of…
… the X register (llvm#75184) Follows llvm#74682 (comment). Fixes llvm#74680. (cherry picked from commit 7649d22)
- Loading branch information
Showing
6 changed files
with
79 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 4 | ||
# RUN: llc -o - %s --run-pass=machine-cp -mcp-use-is-copy-instr -mtriple=arm64-apple-macos --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: $w8 = ORRWrs $wzr, $w0, 0, implicit-def $x8 | ||
; 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, $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 | ||
... |