diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2015-08-04 06:32:45 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2015-08-04 06:32:45 +0000 |
commit | 63c3989f6a39034d1ca0f8ecbd35f79606147746 (patch) | |
tree | 0e1974c3be89486561eec879d6d343cfc2cc7fc0 /llvm/test/CodeGen/MIR/Generic/machine-function-missing-function.mir | |
parent | fc6b6983ac267448d6b5d032f7f226001ab4d6a6 (diff) | |
download | bcm5719-llvm-63c3989f6a39034d1ca0f8ecbd35f79606147746.tar.gz bcm5719-llvm-63c3989f6a39034d1ca0f8ecbd35f79606147746.zip |
Move generic MIR tests in their own subdir, requires "native" as well
These tests rely on the native backend to be built-in.
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 243959
Diffstat (limited to 'llvm/test/CodeGen/MIR/Generic/machine-function-missing-function.mir')
-rw-r--r-- | llvm/test/CodeGen/MIR/Generic/machine-function-missing-function.mir | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/MIR/Generic/machine-function-missing-function.mir b/llvm/test/CodeGen/MIR/Generic/machine-function-missing-function.mir new file mode 100644 index 00000000000..424c34aae84 --- /dev/null +++ b/llvm/test/CodeGen/MIR/Generic/machine-function-missing-function.mir @@ -0,0 +1,23 @@ +# RUN: not llc -start-after branch-folder -stop-after branch-folder -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 +body: + - id: 0 +... +--- +# CHECK: function 'faa' isn't defined in the provided LLVM IR +name: faa +body: + - id: 0 +... |