repo.or.cz
/
llvm
/
zpu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
zpu: simple fn with stack slots compile
[llvm/zpu.git]
/
test
/
CodeGen
/
ARM
/
carry.ll
blob
a6a7ed6af1840efbd3d767b49d3b95b3579519ec
1
; RUN: llc < %s -march=arm | FileCheck %s
2
3
define i64 @f1(i64 %a, i64 %b) {
4
; CHECK: f1:
5
; CHECK: subs r
6
; CHECK: sbc r
7
entry:
8
%tmp = sub i64 %a, %b
9
ret i64 %tmp
10
}
11
12
define i64 @f2(i64 %a, i64 %b) {
13
; CHECK: f2:
14
; CHECK: adc r
15
; CHECK: subs r
16
; CHECK: sbc r
17
entry:
18
%tmp1 = shl i64 %a, 1
19
%tmp2 = sub i64 %tmp1, %b
20
ret i64 %tmp2
21
}