2015-06-23 01:02:30 +08:00
|
|
|
# RUN: not llc -march=x86-64 -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 an unknown instruction is
|
|
|
|
# encountered.
|
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|
define i32 @foo() {
|
|
|
|
entry:
|
|
|
|
ret i32 0
|
|
|
|
}
|
|
|
|
|
|
|
|
...
|
|
|
|
---
|
|
|
|
name: foo
|
|
|
|
body:
|
2015-06-27 00:46:11 +08:00
|
|
|
- id: 0
|
|
|
|
name: entry
|
2015-06-23 01:02:30 +08:00
|
|
|
instructions:
|
2015-06-24 06:39:23 +08:00
|
|
|
# CHECK: [[@LINE+1]]:8: unknown machine instruction name 'retJust0'
|
2015-06-23 01:02:30 +08:00
|
|
|
- retJust0
|
|
|
|
...
|