mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Fix my previous patch to handle a degenerate case that the llvm-gcc
bootstrap buildbot tripped over. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121674 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -88,3 +88,26 @@ lor.end: ; preds = %lor.rhs, %lor.lhs.f
|
||||
; CHECK: ]
|
||||
}
|
||||
|
||||
define i32 @test5(i8 zeroext %c) nounwind ssp noredzone {
|
||||
entry:
|
||||
switch i8 %c, label %lor.rhs [
|
||||
i8 62, label %lor.end
|
||||
i8 34, label %lor.end
|
||||
i8 92, label %lor.end
|
||||
]
|
||||
|
||||
lor.rhs: ; preds = %entry
|
||||
%V = icmp eq i8 %c, 92
|
||||
br label %lor.end
|
||||
|
||||
lor.end: ; preds = %entry, %entry, %entry, %lor.rhs
|
||||
%0 = phi i1 [ true, %entry ], [ %V, %lor.rhs ], [ true, %entry ], [ true, %entry ]
|
||||
%lor.ext = zext i1 %0 to i32
|
||||
ret i32 %lor.ext
|
||||
; CHECK: @test5
|
||||
; CHECK: switch i8 %c, label %lor.rhs [
|
||||
; CHECK: i8 62, label %lor.end
|
||||
; CHECK: i8 34, label %lor.end
|
||||
; CHECK: i8 92, label %lor.end
|
||||
; CHECK: ]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user