mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +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.
26 lines
643 B
YAML
26 lines
643 B
YAML
# RUN: llc -march=hexagon -start-before=hexagon-packetizer -o - %s | FileCheck %s
|
|
# This used to generate an invalid packet:
|
|
# {
|
|
# r1 = #0
|
|
# memw(r0++#4) = r1.new // new-value store must be the only store
|
|
# memw(r0+#0) = #0
|
|
# }
|
|
#
|
|
# CHECK: memw
|
|
# CHECK: }
|
|
# CHECK: memw
|
|
|
|
---
|
|
name: f0
|
|
tracksRegLiveness: true
|
|
stack:
|
|
- { id: 0, size: 8, alignment: 8 }
|
|
body: |
|
|
bb.0:
|
|
liveins: $r0
|
|
renamable $r1 = A2_tfrsi 0
|
|
renamable $r0 = S2_storeri_pi renamable $r0, 4, killed renamable $r1 :: (store (s32) into %stack.0)
|
|
S4_storeiri_io renamable $r0, 0, 0 :: (store (s32) into %stack.0 + 4)
|
|
J2_jumpr $r31, implicit-def $pc
|
|
...
|