repo.or.cz
/
llvm
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Silence -Wunused-variable in release builds.
[llvm/stm8.git]
/
test
/
CodeGen
/
Thumb2
/
carry.ll
blob
de6f6e260de3d4edd041f9810143d536db07fe0e
1
; RUN: llc < %s -march=thumb -mattr=+thumb2 | FileCheck %s
2
3
define i64 @f1(i64 %a, i64 %b) {
4
entry:
5
; CHECK: f1:
6
; CHECK: subs r0, r0, r2
7
; CHECK: sbcs r1, r3
8
%tmp = sub i64 %a, %b
9
ret i64 %tmp
10
}
11
12
define i64 @f2(i64 %a, i64 %b) {
13
entry:
14
; CHECK: f2:
15
; CHECK: adds r0, r0, r0
16
; CHECK: adcs r1, r1
17
; CHECK: subs r0, r0, r2
18
; CHECK: sbcs r1, r3
19
%tmp1 = shl i64 %a, 1
20
%tmp2 = sub i64 %tmp1, %b
21
ret i64 %tmp2
22
}