mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-02 08:26:39 +00:00
Only access both operands of an INSERT_SUBVECTOR if it is an INSERT_SUBVECTOR.
Fixes PR10527. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136853 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -341,3 +341,26 @@ CF77:
|
||||
br label %CF77
|
||||
}
|
||||
|
||||
; PR10527
|
||||
define void @pr10527() nounwind uwtable {
|
||||
entry:
|
||||
br label %"4"
|
||||
|
||||
"3":
|
||||
%0 = load <2 x i32>* null, align 8
|
||||
%1 = xor <2 x i32> zeroinitializer, %0
|
||||
%2 = and <2 x i32> %1, %6
|
||||
%3 = or <2 x i32> undef, %2
|
||||
%4 = and <2 x i32> %3, undef
|
||||
store <2 x i32> %4, <2 x i32>* undef
|
||||
%5 = load <2 x i32>* undef, align 1
|
||||
br label %"4"
|
||||
|
||||
"4":
|
||||
%6 = phi <2 x i32> [ %5, %"3" ], [ zeroinitializer, %entry ]
|
||||
%7 = icmp ult i32 undef, undef
|
||||
br i1 %7, label %"3", label %"5"
|
||||
|
||||
"5":
|
||||
ret void
|
||||
}
|
||||
|
Reference in New Issue
Block a user