mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-24 12:50:42 +00:00

If you run llc -stop-after=codegenprepare and feed the resulting MIR to llc -start-after=codegenprepare, you'll have an empty machine function since we haven't run any isel yet. Of course, this only works if the MIRParser believes you that this is okay. This is essentially a revert of r241862 with a fix for the problem it was papering over. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299975 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
411 B
YAML
20 lines
411 B
YAML
# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
|
|
# This test ensures that an error is reported when the mir file has LLVM IR and
|
|
# one of the machine functions has a name that doesn't match any function in
|
|
# the LLVM IR.
|
|
|
|
--- |
|
|
|
|
define i32 @foo() {
|
|
ret i32 0
|
|
}
|
|
|
|
...
|
|
---
|
|
name: foo
|
|
...
|
|
---
|
|
# CHECK: function 'faa' isn't defined in the provided LLVM IR
|
|
name: faa
|
|
...
|