mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 08:23:21 +01:00
b394f59f17
llvm-svn: 155432
12 lines
314 B
LLVM
12 lines
314 B
LLVM
; RUN: opt < %s -basicaa -dse -S | FileCheck %s
|
|
|
|
define void @test({i32,i32 }* %P) {
|
|
; CHECK: store i32 0, i32* %X
|
|
%Q = getelementptr {i32,i32}* %P, i32 1
|
|
%X = getelementptr {i32,i32}* %Q, i32 0, i32 1
|
|
%Y = getelementptr {i32,i32}* %Q, i32 1, i32 1
|
|
store i32 0, i32* %X
|
|
store i32 1, i32* %Y
|
|
ret void
|
|
}
|