summaryrefslogtreecommitdiff
path: root/test/CodeGen/XCore/zext.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/XCore/zext.ll')
-rw-r--r--test/CodeGen/XCore/zext.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/XCore/zext.ll b/test/CodeGen/XCore/zext.ll
new file mode 100644
index 0000000000000..32abfcaed10b6
--- /dev/null
+++ b/test/CodeGen/XCore/zext.ll
@@ -0,0 +1,10 @@
+; RUN: llc -march=xcore < %s | FileCheck %s
+
+define i32 @f(i1 %a) {
+entry:
+; CHECK: f
+; CHECK: zext r0, 1
+; CHECK: retsp 0
+ %b= zext i1 %a to i32
+ ret i32 %b
+}