mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
12 lines
238 B
LLVM
12 lines
238 B
LLVM
|
; 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
|
||
|
}
|