summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM64/zext.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM64/zext.ll')
-rw-r--r--test/CodeGen/ARM64/zext.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/ARM64/zext.ll b/test/CodeGen/ARM64/zext.ll
new file mode 100644
index 0000000000..8d9e5ea040
--- /dev/null
+++ b/test/CodeGen/ARM64/zext.ll
@@ -0,0 +1,11 @@
+; RUN: llc < %s -march=arm64 | FileCheck %s
+
+define i64 @foo(i32 %a, i32 %b) nounwind readnone ssp {
+entry:
+; CHECK-LABEL: foo:
+; CHECK: add w0, w1, w0
+; CHECK: ret
+ %add = add i32 %b, %a
+ %conv = zext i32 %add to i64
+ ret i64 %conv
+}