mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
Add test for the boolean not TANP transformation
This commit is contained in:
committed by
Pietro Fezzardi
parent
8429c35f2e
commit
866b9965fa
@@ -279,4 +279,16 @@ define i1 @neg_neg(i16 %0) !revng.tags !0 {
|
||||
ret i1 %3
|
||||
}
|
||||
|
||||
define i1 @twoscomplement_norm_boolean_not(i8 %0) !revng.tags !0 {
|
||||
; CHECK: %2 = call i1 @boolean_not(i8 %0)
|
||||
; CHECK-NEXT: br i1 %2, label %If, label %Else
|
||||
|
||||
%2 = icmp eq i8 %0, 0
|
||||
br i1 %2, label %If, label %Else
|
||||
If:
|
||||
ret i1 0
|
||||
Else:
|
||||
ret i1 1
|
||||
}
|
||||
|
||||
!0 = !{!"Isolated"}
|
||||
|
||||
Reference in New Issue
Block a user