mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
fce288fc91
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81293 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
285 B
LLVM
13 lines
285 B
LLVM
; RUN: llc < %s -march=xcore -mcpu=xs1b-generic > %t1.s
|
|
; RUN: grep ladd %t1.s | count 2
|
|
; RUN: grep lsub %t1.s | count 2
|
|
define i64 @add64(i64 %a, i64 %b) {
|
|
%result = add i64 %a, %b
|
|
ret i64 %result
|
|
}
|
|
|
|
define i64 @sub64(i64 %a, i64 %b) {
|
|
%result = sub i64 %a, %b
|
|
ret i64 %result
|
|
}
|