summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Hexagon/generic-cpu.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/Hexagon/generic-cpu.ll')
-rw-r--r--llvm/test/CodeGen/Hexagon/generic-cpu.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Hexagon/generic-cpu.ll b/llvm/test/CodeGen/Hexagon/generic-cpu.ll
new file mode 100644
index 00000000000..10b1030dab1
--- /dev/null
+++ b/llvm/test/CodeGen/Hexagon/generic-cpu.ll
@@ -0,0 +1,7 @@
+; RUN: llc -mtriple=hexagon-unknown-elf -mcpu=generic < %s | FileCheck %s
+
+; CHECK-NOT: invalid CPU
+
+define i32 @test(i32 %a) {
+ ret i32 0
+}
OpenPOWER on IntegriCloud