mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
cc12b285b6
This will currently accept the old number of bytes syntax, and convert it to a scalar. This should be removed in the near future (I think I converted all of the tests already, but likely missed a few). Not sure what the exact syntax and policy should be. We can continue printing the number of bytes for non-generic instructions to avoid test churn and only allow non-scalar types for generic instructions. This will currently print the LLT in parentheses, but accept parsing the existing integers and implicitly converting to scalar. The parentheses are a bit ugly, but the parser logic seems unable to deal without either parentheses or some keyword to indicate the start of a type.
54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
#RUN: llc -mtriple=aarch64-- -mcpu=cyclone -run-pass machine-scheduler -o - %s | FileCheck %s
|
|
---
|
|
name: merge_stack
|
|
# CHECK-LABEL: name: merge_stack
|
|
tracksRegLiveness: true
|
|
stack:
|
|
- { id: 0, size: 16, alignment: 8 }
|
|
body: |
|
|
bb.0:
|
|
liveins: $w0, $w1
|
|
|
|
%0:gpr32 = COPY $w0
|
|
%1:gpr32 = COPY $w1
|
|
undef %3.sub_32:gpr64 = ORRWrs $wzr, %0, 0
|
|
STRXui %3, %stack.0, 0 :: (store (s64))
|
|
undef %5.sub_32:gpr64 = ORRWrs $wzr, %1, 0
|
|
STRXui %5, %stack.0, 1 :: (store (s64))
|
|
RET_ReallyLR
|
|
|
|
; CHECK: COPY
|
|
; CHECK-NEXT: COPY
|
|
; CHECK-NEXT: ORRWrs
|
|
; CHECK-NEXT: ORRWrs
|
|
; CHECK-NEXT: STRXui
|
|
; CHECK-NEXT: STRXui
|
|
; CHECK-NEXT: RET
|
|
...
|
|
---
|
|
name: merge_fixedstack
|
|
# CHECK-LABEL: name: merge_fixedstack
|
|
tracksRegLiveness: true
|
|
fixedStack:
|
|
- { id: 0, size: 16, alignment: 8, offset: -16 }
|
|
body: |
|
|
bb.0:
|
|
liveins: $w0, $w1
|
|
|
|
%0:gpr32 = COPY $w0
|
|
%1:gpr32 = COPY $w1
|
|
undef %3.sub_32:gpr64 = ORRWrs $wzr, %0, 0
|
|
STRXui %3, %fixed-stack.0, 0 :: (store (s64))
|
|
undef %5.sub_32:gpr64 = ORRWrs $wzr, %1, 0
|
|
STRXui %5, %fixed-stack.0, 1 :: (store (s64))
|
|
RET_ReallyLR
|
|
|
|
; CHECK: COPY
|
|
; CHECK-NEXT: COPY
|
|
; CHECK-NEXT: ORRWrs
|
|
; CHECK-NEXT: ORRWrs
|
|
; CHECK-NEXT: STRXui
|
|
; CHECK-NEXT: STRXui
|
|
; CHECK-NEXT: RET
|
|
...
|