repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
pass machinemoduleinfo down into getSymbolForDwarfGlobalReference,
[llvm/avr.git]
/
test
/
CodeGen
/
X86
/
add-trick32.ll
blob
e86045db0abb03da369ebed188135345a4aa5a2f
1
; RUN: llc < %s -march=x86 > %t
2
; RUN: not grep add %t
3
; RUN: grep subl %t | count 1
4
5
; The immediate can be encoded in a smaller way if the
6
; instruction is a sub instead of an add.
7
8
define i32 @foo(i32 inreg %a) nounwind {
9
%b = add i32 %a, 128
10
ret i32 %b
11
}