mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[CVP] Add additional test for phi common val transform (NFC)
This commit is contained in:
parent
3a4e6d31f4
commit
1868c30048
@ -150,6 +150,31 @@ bb3:
|
||||
ret i32 %r
|
||||
}
|
||||
|
||||
; Same as previous test case, but without nowrap flags.
|
||||
define i32 @PR43802_without_nowrap(i32 %arg) {
|
||||
; CHECK-LABEL: @PR43802_without_nowrap(
|
||||
; CHECK-NEXT: entry:
|
||||
; CHECK-NEXT: [[SUB:%.*]] = sub i32 0, [[ARG:%.*]]
|
||||
; CHECK-NEXT: [[CMP:%.*]] = icmp eq i32 [[ARG]], -2147483648
|
||||
; CHECK-NEXT: br i1 [[CMP]], label [[BB2:%.*]], label [[BB3:%.*]]
|
||||
; CHECK: bb2:
|
||||
; CHECK-NEXT: br label [[BB3]]
|
||||
; CHECK: bb3:
|
||||
; CHECK-NEXT: ret i32 [[SUB]]
|
||||
;
|
||||
entry:
|
||||
%sub = sub i32 0, %arg
|
||||
%cmp = icmp eq i32 %arg, -2147483648
|
||||
br i1 %cmp, label %bb2, label %bb3
|
||||
|
||||
bb2:
|
||||
br label %bb3
|
||||
|
||||
bb3:
|
||||
%r = phi i32 [ -2147483648, %bb2 ], [ %sub, %entry ]
|
||||
ret i32 %r
|
||||
}
|
||||
|
||||
; TODO: Miscompile.
|
||||
define i8 @pr50399(i8 %x) {
|
||||
; CHECK-LABEL: @pr50399(
|
||||
|
Loading…
Reference in New Issue
Block a user