projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add some more features that we could instcombine away
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
div.ll
1
; This test makes sure that div instructions are properly eliminated.
2
;
3
4
; RUN: if as < %s | opt -instcombine | dis | grep div
5
; RUN: then exit 1
6
; RUN: else exit 0
7
; RUN: fi
8
9
implementation
10
11
int "test1"(int %A)
12
begin
13
%B = div int %A, 1
14
ret int %B
15
end
16