mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
a62270de2c
The reversion apparently deleted the test/Transforms directory. Will be re-reverting again. llvm-svn: 358552
35 lines
832 B
LLVM
35 lines
832 B
LLVM
; RUN: opt -gvn <%s -S -o - | FileCheck %s
|
|
|
|
define void @f() {
|
|
entry:
|
|
%a = alloca <7 x i1>, align 2
|
|
store <7 x i1> undef, <7 x i1>* %a, align 2
|
|
; CHECK: store <7 x i1> undef, <7 x i1>*
|
|
%0 = getelementptr inbounds <7 x i1>, <7 x i1>* %a, i64 0, i64 0
|
|
%val = load i1, i1* %0, align 2
|
|
; CHECK: load i1, i1*
|
|
br i1 %val, label %cond.true, label %cond.false
|
|
|
|
cond.true:
|
|
ret void
|
|
|
|
cond.false:
|
|
ret void
|
|
}
|
|
|
|
define <7 x i1> @g(<7 x i1>* %a) {
|
|
entry:
|
|
%vec = load <7 x i1>, <7 x i1>* %a
|
|
; CHECK: load <7 x i1>, <7 x i1>*
|
|
%0 = getelementptr inbounds <7 x i1>, <7 x i1>* %a, i64 0, i64 0
|
|
%val = load i1, i1* %0, align 2
|
|
; CHECK: load i1, i1*
|
|
br i1 %val, label %cond.true, label %cond.false
|
|
|
|
cond.true:
|
|
ret <7 x i1> %vec
|
|
|
|
cond.false:
|
|
ret <7 x i1> <i1 false, i1 false, i1 false, i1 false, i1 false, i1 false, i1 false>
|
|
}
|