mirror of
https://github.com/RPCS3/llvm.git
synced 2026-08-27 21:00:01 -04:00
b931375195
Planning to add support for named vregs. This puts is in a conundrum since physregs are named as well. To rectify this we need to use a sigil other than '%' for physregs in MIR. We've settled on using '$' for physregs but first we must repurpose it from external symbols using it, which is what this commit is all about. We think '&' will have familiar semantics for C/C++ users. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@322146 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
293 B
YAML
13 lines
293 B
YAML
# RUN: llc -o - %s -mtriple=x86_64-- -run-pass none | FileCheck %s
|
|
---
|
|
# Avoid crash/assert when using an emptystring in an INLINEASM.
|
|
# CHECK-LABEL: name: emptystring
|
|
# CHECK: bb.0:
|
|
# CHECK: INLINEASM &"", 1
|
|
# CHECK: RET 0
|
|
name: emptystring
|
|
body: |
|
|
bb.0:
|
|
INLINEASM &"", 1
|
|
RET 0
|