mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-23 12:40:17 +00:00
1250ac8a09
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98148 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
475 B
LLVM
21 lines
475 B
LLVM
; RUN: llc < %s -march=xcore | FileCheck %s
|
|
define i64 @add64(i64 %a, i64 %b) {
|
|
%result = add i64 %a, %b
|
|
ret i64 %result
|
|
}
|
|
; CHECK: add64
|
|
; CHECK: ldc r11, 0
|
|
; CHECK-NEXT: ladd r2, r0, r0, r2, r11
|
|
; CHECK-NEXT: ladd r2, r1, r1, r3, r2
|
|
; CHECK-NEXT: retsp 0
|
|
|
|
define i64 @sub64(i64 %a, i64 %b) {
|
|
%result = sub i64 %a, %b
|
|
ret i64 %result
|
|
}
|
|
; CHECK: sub64
|
|
; CHECK: ldc r11, 0
|
|
; CHECK-NEXT: lsub r2, r0, r0, r2, r11
|
|
; CHECK-NEXT: lsub r2, r1, r1, r3, r2
|
|
; CHECK-NEXT: retsp 0
|