projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Teach lit that the .c files in 'test/CodeGen/CellSPU/useful-harnesses' aren't tests.
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
2004-07-27-ConstantExprMul.ll
diff --git
a/test/Transforms/InstCombine/2004-07-27-ConstantExprMul.ll
b/test/Transforms/InstCombine/2004-07-27-ConstantExprMul.ll
index aa95320ac1f75184ab400e0e9fbbe435de24cce4..819260b60b127b8ac61495fc10bc35b63a1f2394 100644
(file)
--- a/
test/Transforms/InstCombine/2004-07-27-ConstantExprMul.ll
+++ b/
test/Transforms/InstCombine/2004-07-27-ConstantExprMul.ll
@@
-1,8
+1,9
@@
-; RUN:
llvm-as < %s | opt
-instcombine -disable-output
+; RUN:
opt < %s
-instcombine -disable-output
-%p = weak global int 0
+@p = weak global i32 0 ; <i32*> [#uses=1]
-
int %test(int
%x) {
- %y = mul int %x, cast (int* %p to int)
-
ret int
%y
+
define i32 @test(i32
%x) {
+ %y = mul i32 %x, ptrtoint (i32* @p to i32) ; <i32> [#uses=1]
+
ret i32
%y
}
}
+