summaryrefslogtreecommitdiff
path: root/test/CodeGen/AArch64/arm64-zext.ll
blob: 8d9e5ea040ee33e5e950306be062494a95d12792 (plain)
1
2
3
4
5
6
7
8
9
10
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
}