mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 22:32:47 +00:00
76806b6a43
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48103 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
370 B
LLVM
11 lines
370 B
LLVM
; RUN: llvm-as < %s | opt -instcombine -gcse -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
|
|
}
|
|
|