projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add a few patterns to match allzeros without having to use the fp unit.
[oota-llvm.git]
/
test
/
CodeGen
/
Thumb2
/
thumb2-sub5.ll
1
; RUN: llc < %s -march=thumb -mattr=+thumb2 -mattr=+32bit | FileCheck %s
2
3
define i64 @f1(i64 %a, i64 %b) {
4
; CHECK: f1:
5
; CHECK: subs.w r0, r0, r2
6
; To test dead_carry, +32bit prevents sbc conveting to 16-bit sbcs
7
; CHECK: sbc.w r1, r1, r3
8
%tmp = sub i64 %a, %b
9
ret i64 %tmp
10
}