summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AVR/issue-cannot-select-bswap.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/AVR/issue-cannot-select-bswap.ll')
-rw-r--r--llvm/test/CodeGen/AVR/issue-cannot-select-bswap.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AVR/issue-cannot-select-bswap.ll b/llvm/test/CodeGen/AVR/issue-cannot-select-bswap.ll
new file mode 100644
index 00000000000..bf26e403524
--- /dev/null
+++ b/llvm/test/CodeGen/AVR/issue-cannot-select-bswap.ll
@@ -0,0 +1,10 @@
+; RUN: llc < %s -march=avr | FileCheck %s
+
+declare i16 @llvm.bswap.i16(i16)
+
+define i16 @foo(i16) {
+; CHECK-LABEL: foo:
+entry-block:
+ %1 = tail call i16 @llvm.bswap.i16(i16 %0)
+ ret i16 %1
+}
OpenPOWER on IntegriCloud