1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 12:33:33 +02:00
llvm-mirror/test/CodeGen/MIR/X86/missing-closing-quote.mir
Alex Lorenz 96c6a7e8a7 MIR Parser: Add support for quoted named global value operands.
This commit extends the machine instruction lexer and implements support for
the quoted global value tokens. With this change the syntax for the global value
identifier tokens becomes identical to the syntax for the global identifier
tokens from the LLVM's assembly language.

Reviewers: Duncan P. N. Exon Smith
llvm-svn: 242702
2015-07-20 20:31:01 +00:00

25 lines
569 B
YAML

# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
--- |
@"quoted name" = external global i32
define i32 @test() {
entry:
%a = load i32, i32* @"quoted name"
ret i32 %a
}
...
---
name: test
body:
- id: 0
name: entry
instructions:
# CHECK: [[@LINE+1]]:53: end of machine instruction reached before the closing '"'
- '%rax = MOV64rm %rip, 1, _, @"quoted name, _'
- '%eax = MOV32rm killed %rax, 1, _, 0, _'
- 'RETQ %eax'
...