projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Arrange to print constants that match "n" and "i" constraints
[oota-llvm.git]
/
test
/
CodeGen
/
Generic
/
div-neg-power-2.ll
diff --git
a/test/CodeGen/Generic/div-neg-power-2.ll
b/test/CodeGen/Generic/div-neg-power-2.ll
index 76d6182931cc31eeb0c3d7115915fee0917a4b9e..3bc4899d8fddf29bb972b85f910d42ef8c6c70cf 100644
(file)
--- a/
test/CodeGen/Generic/div-neg-power-2.ll
+++ b/
test/CodeGen/Generic/div-neg-power-2.ll
@@
-1,6
+1,7
@@
; RUN: llvm-as < %s | llc
-
int %test(int
%X) {
- %Y = div int %X, -2
-
ret int
%Y
+
define i32 @test(i32
%X) {
+ %Y = sdiv i32 %X, -2 ; <i32> [#uses=1]
+
ret i32
%Y
}
+