mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +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
843 B
YAML
26 lines
843 B
YAML
# RUN: not --crash llc -march=aarch64 -o /dev/null -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
|
# REQUIRES: aarch64-registered-target
|
|
|
|
# Undef uses are illegal for generic vregs.
|
|
|
|
---
|
|
name: test_undef_use
|
|
liveins:
|
|
body: |
|
|
bb.0:
|
|
%0:_(s32) = G_CONSTANT i32 0
|
|
|
|
; Test generic instruction
|
|
; CHECK: *** Bad machine code: Generic virtual register use cannot be undef ***
|
|
G_STORE %0, undef %1:_(p0) :: (store (s32))
|
|
|
|
; Make sure this fails on a post-isel generic instruction.
|
|
; CHECK: *** Bad machine code: Generic virtual register use cannot be undef ***
|
|
$x0 = COPY undef %2:_(s64)
|
|
|
|
; Make sure this fails with a target instruction
|
|
; CHECK: *** Bad machine code: Generic virtual register use cannot be undef ***
|
|
RET_ReallyLR implicit $x0, implicit undef %3:_(s32)
|
|
...
|
|
|