Files
clang-p2996/llvm/test/CodeGen/MIR/X86/expected-metadata-node-in-stack-object.mir
Matt Arsenault fae05692a3 CodeGen: Print/parse LLTs in MachineMemOperands
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.
2021-06-30 16:54:13 -04:00

27 lines
613 B
YAML

# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
--- |
define i32 @test(i32 %x) {
entry:
%xa = alloca i32, align 4
store i32 %x, i32* %xa, align 4
%0 = load i32, i32* %xa, align 4
ret i32 %0
}
...
---
name: test
liveins:
- { reg: '$edi' }
stack:
- { id: 0, name: xa, offset: -12, size: 4, alignment: 4,
# CHECK: [[@LINE+1]]:29: expected a metadata node
debug-info-variable: '0' }
body: |
bb.0.entry:
liveins: $edi
MOV32mr $rsp, 1, _, -4, _, $edi :: (store (s32) into %ir.xa)
$eax = COPY killed $edi
RETQ killed $eax
...