mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-22 20:43:44 +02:00
96c6a7e8a7
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
25 lines
569 B
YAML
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'
|
|
...
|