summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/RISCV/mattr-invalid-combination.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/RISCV/mattr-invalid-combination.ll')
-rw-r--r--llvm/test/CodeGen/RISCV/mattr-invalid-combination.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/RISCV/mattr-invalid-combination.ll b/llvm/test/CodeGen/RISCV/mattr-invalid-combination.ll
new file mode 100644
index 00000000000..cb24405b160
--- /dev/null
+++ b/llvm/test/CodeGen/RISCV/mattr-invalid-combination.ll
@@ -0,0 +1,4 @@
+; RUN: not llc -mtriple=riscv64 -mattr=+e < %s 2>&1 \
+; RUN: | FileCheck -check-prefix=RV64E %s
+
+; RV64E: LLVM ERROR: RV32E can't be enabled for an RV64 target
OpenPOWER on IntegriCloud