summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2004-07-27-ConstantExprMul.ll
blob: aa95320ac1f75184ab400e0e9fbbe435de24cce4 (plain)
1
2
3
4
5
6
7
8
; RUN: llvm-as < %s | opt -instcombine -disable-output

%p = weak global int 0

int %test(int %x) {
	%y = mul int %x, cast (int* %p to int)
	ret int %y
}