mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 08:23:21 +01:00
42c1d6c7b9
llvm-svn: 54832
11 lines
369 B
LLVM
11 lines
369 B
LLVM
; RUN: llvm-as < %s | opt -instcombine -gvn -instcombine | \
|
|
; RUN: llvm-dis | not grep getelementptr
|
|
|
|
define i1 @test(i32* %A) {
|
|
%B = getelementptr i32* %A, i32 1 ; <i32*> [#uses=1]
|
|
%C = getelementptr i32* %A, i64 1 ; <i32*> [#uses=1]
|
|
%V = icmp eq i32* %B, %C ; <i1> [#uses=1]
|
|
ret i1 %V
|
|
}
|
|
|