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
Change tests from "opt %s" to "opt < %s" so that opt doesn't see the
[llvm/avr.git]
/
test
/
Transforms
/
InstCombine
/
2002-05-14-SubFailure.ll
blob
d2b2b0027a52c51c6332af24f3dd79084ca5b0a0
1
; Instcombine was missing a test that caused it to make illegal transformations
2
; sometimes. In this case, it transforms the sub into an add:
3
; RUN: opt < %s -instcombine -S | grep sub
4
;
5
define i32 @test(i32 %i, i32 %j) {
6
%A = mul i32 %i, %j
7
%B = sub i32 2, %A
8
ret i32 %B
9
}
10