A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
;; GENERATED BY `isaspec`. DO NOT EDIT!!!
(attr MInst.CSel (tag isaspec_generated))
(spec
(MInst.CSel rd cond rn rm)
(provide
(match
cond
((Le)
(with
(t3 t5 t7)
(and
(= t3 (not (and (= (:N (:flags_in result)) (:V (:flags_in result))) (= (:Z (:flags_in result)) #b0))))
(if t3 (= t5 rn) (= t7 rm))
(= rd (if t3 t5 t7))
)
)
)
((Gt)
(with
(t3 t5 t7)
(and
(= t3 (and (= (:N (:flags_in result)) (:V (:flags_in result))) (= (:Z (:flags_in result)) #b0)))
(if t3 (= t5 rn) (= t7 rm))
(= rd (if t3 t5 t7))
)
)
)
((Lt)
(with
(t2 t4 t6)
(and (= t2 (not (= (:N (:flags_in result)) (:V (:flags_in result))))) (if t2 (= t4 rn) (= t6 rm)) (= rd (if t2 t4 t6)))
)
)
((Ge)
(with
(t2 t4 t6)
(and (= t2 (= (:N (:flags_in result)) (:V (:flags_in result)))) (if t2 (= t4 rn) (= t6 rm)) (= rd (if t2 t4 t6)))
)
)
((Ls)
(with
(t2 t4 t6)
(and
(= t2 (not (and (= (:C (:flags_in result)) #b1) (= (:Z (:flags_in result)) #b0))))
(if t2 (= t4 rn) (= t6 rm))
(= rd (if t2 t4 t6))
)
)
)
((Hi)
(with
(t2 t4 t6)
(and
(= t2 (and (= (:C (:flags_in result)) #b1) (= (:Z (:flags_in result)) #b0)))
(if t2 (= t4 rn) (= t6 rm))
(= rd (if t2 t4 t6))
)
)
)
((Vc)
(with (t1 t3 t5) (and (= t1 (not (= (:V (:flags_in result)) #b1))) (if t1 (= t3 rn) (= t5 rm)) (= rd (if t1 t3 t5))))
)
((Vs) (with (t1 t3 t5) (and (= t1 (= (:V (:flags_in result)) #b1)) (if t1 (= t3 rn) (= t5 rm)) (= rd (if t1 t3 t5)))))
((Pl)
(with (t1 t3 t5) (and (= t1 (not (= (:N (:flags_in result)) #b1))) (if t1 (= t3 rn) (= t5 rm)) (= rd (if t1 t3 t5))))
)
((Mi) (with (t1 t3 t5) (and (= t1 (= (:N (:flags_in result)) #b1)) (if t1 (= t3 rn) (= t5 rm)) (= rd (if t1 t3 t5)))))
((Lo)
(with (t1 t3 t5) (and (= t1 (not (= (:C (:flags_in result)) #b1))) (if t1 (= t3 rn) (= t5 rm)) (= rd (if t1 t3 t5))))
)
((Hs) (with (t1 t3 t5) (and (= t1 (= (:C (:flags_in result)) #b1)) (if t1 (= t3 rn) (= t5 rm)) (= rd (if t1 t3 t5)))))
((Ne)
(with (t1 t3 t5) (and (= t1 (not (= (:Z (:flags_in result)) #b1))) (if t1 (= t3 rn) (= t5 rm)) (= rd (if t1 t3 t5))))
)
((Eq) (with (t1 t3 t5) (and (= t1 (= (:Z (:flags_in result)) #b1)) (if t1 (= t3 rn) (= t5 rm)) (= rd (if t1 t3 t5)))))
)
)
(require
(match
cond
((Le) true)
((Gt) true)
((Lt) true)
((Ge) true)
((Ls) true)
((Hi) true)
((Vc) true)
((Vs) true)
((Pl) true)
((Mi) true)
((Lo) true)
((Hs) true)
((Ne) true)
((Eq) true)
)
)
)
(attr MInst.CSNeg (tag isaspec_generated))
(spec
(MInst.CSNeg rd cond rn rm)
(provide
(match
cond
((Le)
(with
(t3 t5 t7)
(and
(= t3 (not (and (= (:N (:flags_in result)) (:V (:flags_in result))) (= (:Z (:flags_in result)) #b0))))
(if t3 (= t5 rn) (= t7 (bvadd (bvnot rm) #x0000000000000001)))
(= rd (if t3 t5 t7))
)
)
)
((Gt)
(with
(t3 t5 t7)
(and
(= t3 (and (= (:N (:flags_in result)) (:V (:flags_in result))) (= (:Z (:flags_in result)) #b0)))
(if t3 (= t5 rn) (= t7 (bvadd (bvnot rm) #x0000000000000001)))
(= rd (if t3 t5 t7))
)
)
)
((Lt)
(with
(t2 t4 t6)
(and
(= t2 (not (= (:N (:flags_in result)) (:V (:flags_in result)))))
(if t2 (= t4 rn) (= t6 (bvadd (bvnot rm) #x0000000000000001)))
(= rd (if t2 t4 t6))
)
)
)
((Ge)
(with
(t2 t4 t6)
(and
(= t2 (= (:N (:flags_in result)) (:V (:flags_in result))))
(if t2 (= t4 rn) (= t6 (bvadd (bvnot rm) #x0000000000000001)))
(= rd (if t2 t4 t6))
)
)
)
((Ls)
(with
(t2 t4 t6)
(and
(= t2 (not (and (= (:C (:flags_in result)) #b1) (= (:Z (:flags_in result)) #b0))))
(if t2 (= t4 rn) (= t6 (bvadd (bvnot rm) #x0000000000000001)))
(= rd (if t2 t4 t6))
)
)
)
((Hi)
(with
(t2 t4 t6)
(and
(= t2 (and (= (:C (:flags_in result)) #b1) (= (:Z (:flags_in result)) #b0)))
(if t2 (= t4 rn) (= t6 (bvadd (bvnot rm) #x0000000000000001)))
(= rd (if t2 t4 t6))
)
)
)
((Vc)
(with
(t1 t3 t5)
(and
(= t1 (not (= (:V (:flags_in result)) #b1)))
(if t1 (= t3 rn) (= t5 (bvadd (bvnot rm) #x0000000000000001)))
(= rd (if t1 t3 t5))
)
)
)
((Vs)
(with
(t1 t3 t5)
(and
(= t1 (= (:V (:flags_in result)) #b1))
(if t1 (= t3 rn) (= t5 (bvadd (bvnot rm) #x0000000000000001)))
(= rd (if t1 t3 t5))
)
)
)
((Pl)
(with
(t1 t3 t5)
(and
(= t1 (not (= (:N (:flags_in result)) #b1)))
(if t1 (= t3 rn) (= t5 (bvadd (bvnot rm) #x0000000000000001)))
(= rd (if t1 t3 t5))
)
)
)
((Mi)
(with
(t1 t3 t5)
(and
(= t1 (= (:N (:flags_in result)) #b1))
(if t1 (= t3 rn) (= t5 (bvadd (bvnot rm) #x0000000000000001)))
(= rd (if t1 t3 t5))
)
)
)
((Lo)
(with
(t1 t3 t5)
(and
(= t1 (not (= (:C (:flags_in result)) #b1)))
(if t1 (= t3 rn) (= t5 (bvadd (bvnot rm) #x0000000000000001)))
(= rd (if t1 t3 t5))
)
)
)
((Hs)
(with
(t1 t3 t5)
(and
(= t1 (= (:C (:flags_in result)) #b1))
(if t1 (= t3 rn) (= t5 (bvadd (bvnot rm) #x0000000000000001)))
(= rd (if t1 t3 t5))
)
)
)
((Ne)
(with
(t1 t3 t5)
(and
(= t1 (not (= (:Z (:flags_in result)) #b1)))
(if t1 (= t3 rn) (= t5 (bvadd (bvnot rm) #x0000000000000001)))
(= rd (if t1 t3 t5))
)
)
)
((Eq)
(with
(t1 t3 t5)
(and
(= t1 (= (:Z (:flags_in result)) #b1))
(if t1 (= t3 rn) (= t5 (bvadd (bvnot rm) #x0000000000000001)))
(= rd (if t1 t3 t5))
)
)
)
)
)
(require
(match
cond
((Le) true)
((Gt) true)
((Lt) true)
((Ge) true)
((Ls) true)
((Hi) true)
((Vc) true)
((Vs) true)
((Pl) true)
((Mi) true)
((Lo) true)
((Hs) true)
((Ne) true)
((Eq) true)
)
)
)
(attr MInst.CSet (tag isaspec_generated))
(spec
(MInst.CSet rd cond)
(provide
(match
cond
((Le)
(with
(t3 t4 t5)
(and
(= t3 (and (= (:N (:flags_in result)) (:V (:flags_in result))) (= (:Z (:flags_in result)) #b0)))
(if t3 (= t4 #x0000000000000000) (= t5 #x0000000000000001))
(= rd (if t3 t4 t5))
)
)
)
((Gt)
(with
(t3 t4 t5)
(and
(= t3 (not (and (= (:N (:flags_in result)) (:V (:flags_in result))) (= (:Z (:flags_in result)) #b0))))
(if t3 (= t4 #x0000000000000000) (= t5 #x0000000000000001))
(= rd (if t3 t4 t5))
)
)
)
((Lt)
(with
(t2 t3 t4)
(and
(= t2 (= (:N (:flags_in result)) (:V (:flags_in result))))
(if t2 (= t3 #x0000000000000000) (= t4 #x0000000000000001))
(= rd (if t2 t3 t4))
)
)
)
((Ge)
(with
(t2 t3 t4)
(and
(= t2 (not (= (:N (:flags_in result)) (:V (:flags_in result)))))
(if t2 (= t3 #x0000000000000000) (= t4 #x0000000000000001))
(= rd (if t2 t3 t4))
)
)
)
((Ls)
(with
(t2 t3 t4)
(and
(= t2 (and (= (:C (:flags_in result)) #b1) (= (:Z (:flags_in result)) #b0)))
(if t2 (= t3 #x0000000000000000) (= t4 #x0000000000000001))
(= rd (if t2 t3 t4))
)
)
)
((Hi)
(with
(t2 t3 t4)
(and
(= t2 (not (and (= (:C (:flags_in result)) #b1) (= (:Z (:flags_in result)) #b0))))
(if t2 (= t3 #x0000000000000000) (= t4 #x0000000000000001))
(= rd (if t2 t3 t4))
)
)
)
((Vc)
(with
(t1 t2 t3)
(and
(= t1 (= (:V (:flags_in result)) #b1))
(if t1 (= t2 #x0000000000000000) (= t3 #x0000000000000001))
(= rd (if t1 t2 t3))
)
)
)
((Vs)
(with
(t1 t2 t3)
(and
(= t1 (not (= (:V (:flags_in result)) #b1)))
(if t1 (= t2 #x0000000000000000) (= t3 #x0000000000000001))
(= rd (if t1 t2 t3))
)
)
)
((Pl)
(with
(t1 t2 t3)
(and
(= t1 (= (:N (:flags_in result)) #b1))
(if t1 (= t2 #x0000000000000000) (= t3 #x0000000000000001))
(= rd (if t1 t2 t3))
)
)
)
((Mi)
(with
(t1 t2 t3)
(and
(= t1 (not (= (:N (:flags_in result)) #b1)))
(if t1 (= t2 #x0000000000000000) (= t3 #x0000000000000001))
(= rd (if t1 t2 t3))
)
)
)
((Lo)
(with
(t1 t2 t3)
(and
(= t1 (= (:C (:flags_in result)) #b1))
(if t1 (= t2 #x0000000000000000) (= t3 #x0000000000000001))
(= rd (if t1 t2 t3))
)
)
)
((Hs)
(with
(t1 t2 t3)
(and
(= t1 (not (= (:C (:flags_in result)) #b1)))
(if t1 (= t2 #x0000000000000000) (= t3 #x0000000000000001))
(= rd (if t1 t2 t3))
)
)
)
((Ne)
(with
(t1 t2 t3)
(and
(= t1 (= (:Z (:flags_in result)) #b1))
(if t1 (= t2 #x0000000000000000) (= t3 #x0000000000000001))
(= rd (if t1 t2 t3))
)
)
)
((Eq)
(with
(t1 t2 t3)
(and
(= t1 (not (= (:Z (:flags_in result)) #b1)))
(if t1 (= t2 #x0000000000000000) (= t3 #x0000000000000001))
(= rd (if t1 t2 t3))
)
)
)
)
)
(require
(match
cond
((Le) true)
((Gt) true)
((Lt) true)
((Ge) true)
((Ls) true)
((Hi) true)
((Vc) true)
((Vs) true)
((Pl) true)
((Mi) true)
((Lo) true)
((Hs) true)
((Ne) true)
((Eq) true)
)
)
)
(attr MInst.CSetm (tag isaspec_generated))
(spec
(MInst.CSetm rd cond)
(provide
(match
cond
((Le)
(with
(t3 t4 t5)
(and
(= t3 (and (= (:N (:flags_in result)) (:V (:flags_in result))) (= (:Z (:flags_in result)) #b0)))
(if t3 (= t4 #x0000000000000000) (= t5 #xffffffffffffffff))
(= rd (if t3 t4 t5))
)
)
)
((Gt)
(with
(t3 t4 t5)
(and
(= t3 (not (and (= (:N (:flags_in result)) (:V (:flags_in result))) (= (:Z (:flags_in result)) #b0))))
(if t3 (= t4 #x0000000000000000) (= t5 #xffffffffffffffff))
(= rd (if t3 t4 t5))
)
)
)
((Lt)
(with
(t2 t3 t4)
(and
(= t2 (= (:N (:flags_in result)) (:V (:flags_in result))))
(if t2 (= t3 #x0000000000000000) (= t4 #xffffffffffffffff))
(= rd (if t2 t3 t4))
)
)
)
((Ge)
(with
(t2 t3 t4)
(and
(= t2 (not (= (:N (:flags_in result)) (:V (:flags_in result)))))
(if t2 (= t3 #x0000000000000000) (= t4 #xffffffffffffffff))
(= rd (if t2 t3 t4))
)
)
)
((Ls)
(with
(t2 t3 t4)
(and
(= t2 (and (= (:C (:flags_in result)) #b1) (= (:Z (:flags_in result)) #b0)))
(if t2 (= t3 #x0000000000000000) (= t4 #xffffffffffffffff))
(= rd (if t2 t3 t4))
)
)
)
((Hi)
(with
(t2 t3 t4)
(and
(= t2 (not (and (= (:C (:flags_in result)) #b1) (= (:Z (:flags_in result)) #b0))))
(if t2 (= t3 #x0000000000000000) (= t4 #xffffffffffffffff))
(= rd (if t2 t3 t4))
)
)
)
((Vc)
(with
(t1 t2 t3)
(and
(= t1 (= (:V (:flags_in result)) #b1))
(if t1 (= t2 #x0000000000000000) (= t3 #xffffffffffffffff))
(= rd (if t1 t2 t3))
)
)
)
((Vs)
(with
(t1 t2 t3)
(and
(= t1 (not (= (:V (:flags_in result)) #b1)))
(if t1 (= t2 #x0000000000000000) (= t3 #xffffffffffffffff))
(= rd (if t1 t2 t3))
)
)
)
((Pl)
(with
(t1 t2 t3)
(and
(= t1 (= (:N (:flags_in result)) #b1))
(if t1 (= t2 #x0000000000000000) (= t3 #xffffffffffffffff))
(= rd (if t1 t2 t3))
)
)
)
((Mi)
(with
(t1 t2 t3)
(and
(= t1 (not (= (:N (:flags_in result)) #b1)))
(if t1 (= t2 #x0000000000000000) (= t3 #xffffffffffffffff))
(= rd (if t1 t2 t3))
)
)
)
((Lo)
(with
(t1 t2 t3)
(and
(= t1 (= (:C (:flags_in result)) #b1))
(if t1 (= t2 #x0000000000000000) (= t3 #xffffffffffffffff))
(= rd (if t1 t2 t3))
)
)
)
((Hs)
(with
(t1 t2 t3)
(and
(= t1 (not (= (:C (:flags_in result)) #b1)))
(if t1 (= t2 #x0000000000000000) (= t3 #xffffffffffffffff))
(= rd (if t1 t2 t3))
)
)
)
((Ne)
(with
(t1 t2 t3)
(and
(= t1 (= (:Z (:flags_in result)) #b1))
(if t1 (= t2 #x0000000000000000) (= t3 #xffffffffffffffff))
(= rd (if t1 t2 t3))
)
)
)
((Eq)
(with
(t1 t2 t3)
(and
(= t1 (not (= (:Z (:flags_in result)) #b1)))
(if t1 (= t2 #x0000000000000000) (= t3 #xffffffffffffffff))
(= rd (if t1 t2 t3))
)
)
)
)
)
(require
(match
cond
((Le) true)
((Gt) true)
((Lt) true)
((Ge) true)
((Ls) true)
((Hi) true)
((Vc) true)
((Vs) true)
((Pl) true)
((Mi) true)
((Lo) true)
((Hs) true)
((Ne) true)
((Eq) true)
)
)
)
(attr MInst.CCmp (tag isaspec_generated))
(spec
(MInst.CCmp size rn rm nzcv cond)
(provide
(match
size
((Size64)
(match
cond
((Le)
(with
(t1 t3 t7)
(and
(= t1 (bvnot rm))
(= t3 (bvadd rn (bvnot rm)))
(= t7 (if (not (and (= (:N (:flags_in result)) (:V (:flags_in result))) (= (:Z (:flags_in result)) #b0))) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t7
(bvnot
(if
(=
(sign_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (sign_ext 128 rn) (sign_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t7) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t7
(bvnot
(if
(=
(zero_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (zero_ext 128 rn) (zero_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t7) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand t7 (if (= (bvadd t3 #x0000000000000001) #x0000000000000000) #b1 #b0))
(bvand (bvnot t7) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor (bvand t7 (extract 63 63 (bvadd t3 #x0000000000000001))) (bvand (bvnot t7) (extract 0 0 (:N nzcv))))
)
)
)
)
((Gt)
(with
(t1 t3 t7)
(and
(= t1 (bvnot rm))
(= t3 (bvadd rn (bvnot rm)))
(= t7 (bvand (if (= (:N (:flags_in result)) (:V (:flags_in result))) #b1 #b0) (bvnot (:Z (:flags_in result)))))
(=
(:V (:flags_out result))
(bvor
(bvand
t7
(bvnot
(if
(=
(sign_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (sign_ext 128 rn) (sign_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t7) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t7
(bvnot
(if
(=
(zero_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (zero_ext 128 rn) (zero_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t7) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand t7 (if (= (bvadd t3 #x0000000000000001) #x0000000000000000) #b1 #b0))
(bvand (bvnot t7) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor (bvand t7 (extract 63 63 (bvadd t3 #x0000000000000001))) (bvand (bvnot t7) (extract 0 0 (:N nzcv))))
)
)
)
)
((Lt)
(with
(t1 t3 t6)
(and
(= t1 (bvnot rm))
(= t3 (bvadd rn (bvnot rm)))
(= t6 (if (not (= (:N (:flags_in result)) (:V (:flags_in result)))) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t6
(bvnot
(if
(=
(sign_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (sign_ext 128 rn) (sign_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t6) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t6
(bvnot
(if
(=
(zero_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (zero_ext 128 rn) (zero_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t6) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand t6 (if (= (bvadd t3 #x0000000000000001) #x0000000000000000) #b1 #b0))
(bvand (bvnot t6) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor (bvand t6 (extract 63 63 (bvadd t3 #x0000000000000001))) (bvand (bvnot t6) (extract 0 0 (:N nzcv))))
)
)
)
)
((Ge)
(with
(t1 t3 t6)
(and
(= t1 (bvnot rm))
(= t3 (bvadd rn (bvnot rm)))
(= t6 (if (= (:N (:flags_in result)) (:V (:flags_in result))) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t6
(bvnot
(if
(=
(sign_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (sign_ext 128 rn) (sign_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t6) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t6
(bvnot
(if
(=
(zero_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (zero_ext 128 rn) (zero_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t6) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand t6 (if (= (bvadd t3 #x0000000000000001) #x0000000000000000) #b1 #b0))
(bvand (bvnot t6) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor (bvand t6 (extract 63 63 (bvadd t3 #x0000000000000001))) (bvand (bvnot t6) (extract 0 0 (:N nzcv))))
)
)
)
)
((Ls)
(with
(t1 t3 t6)
(and
(= t1 (bvnot rm))
(= t3 (bvadd rn (bvnot rm)))
(= t6 (if (not (and (= (:C (:flags_in result)) #b1) (= (:Z (:flags_in result)) #b0))) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t6
(bvnot
(if
(=
(sign_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (sign_ext 128 rn) (sign_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t6) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t6
(bvnot
(if
(=
(zero_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (zero_ext 128 rn) (zero_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t6) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand t6 (if (= (bvadd t3 #x0000000000000001) #x0000000000000000) #b1 #b0))
(bvand (bvnot t6) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor (bvand t6 (extract 63 63 (bvadd t3 #x0000000000000001))) (bvand (bvnot t6) (extract 0 0 (:N nzcv))))
)
)
)
)
((Hi)
(with
(t1 t3 t6)
(and
(= t1 (bvnot rm))
(= t3 (bvadd rn (bvnot rm)))
(= t6 (bvand (:C (:flags_in result)) (bvnot (:Z (:flags_in result)))))
(=
(:V (:flags_out result))
(bvor
(bvand
t6
(bvnot
(if
(=
(sign_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (sign_ext 128 rn) (sign_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t6) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t6
(bvnot
(if
(=
(zero_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (zero_ext 128 rn) (zero_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t6) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand t6 (if (= (bvadd t3 #x0000000000000001) #x0000000000000000) #b1 #b0))
(bvand (bvnot t6) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor (bvand t6 (extract 63 63 (bvadd t3 #x0000000000000001))) (bvand (bvnot t6) (extract 0 0 (:N nzcv))))
)
)
)
)
((Vc)
(with
(t1 t3 t5)
(and
(= t1 (bvnot rm))
(= t3 (bvadd rn (bvnot rm)))
(= t5 (if (not (= (:V (:flags_in result)) #b1)) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(sign_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (sign_ext 128 rn) (sign_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(zero_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (zero_ext 128 rn) (zero_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand t5 (if (= (bvadd t3 #x0000000000000001) #x0000000000000000) #b1 #b0))
(bvand (bvnot t5) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor (bvand t5 (extract 63 63 (bvadd t3 #x0000000000000001))) (bvand (bvnot t5) (extract 0 0 (:N nzcv))))
)
)
)
)
((Vs)
(with
(t1 t3 t5)
(and
(= t1 (bvnot rm))
(= t3 (bvadd rn (bvnot rm)))
(= t5 (:V (:flags_in result)))
(=
(:V (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(sign_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (sign_ext 128 rn) (sign_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(zero_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (zero_ext 128 rn) (zero_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand t5 (if (= (bvadd t3 #x0000000000000001) #x0000000000000000) #b1 #b0))
(bvand (bvnot t5) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor (bvand t5 (extract 63 63 (bvadd t3 #x0000000000000001))) (bvand (bvnot t5) (extract 0 0 (:N nzcv))))
)
)
)
)
((Pl)
(with
(t1 t3 t5)
(and
(= t1 (bvnot rm))
(= t3 (bvadd rn (bvnot rm)))
(= t5 (if (not (= (:N (:flags_in result)) #b1)) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(sign_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (sign_ext 128 rn) (sign_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(zero_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (zero_ext 128 rn) (zero_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand t5 (if (= (bvadd t3 #x0000000000000001) #x0000000000000000) #b1 #b0))
(bvand (bvnot t5) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor (bvand t5 (extract 63 63 (bvadd t3 #x0000000000000001))) (bvand (bvnot t5) (extract 0 0 (:N nzcv))))
)
)
)
)
((Mi)
(with
(t1 t3 t5)
(and
(= t1 (bvnot rm))
(= t3 (bvadd rn (bvnot rm)))
(= t5 (:N (:flags_in result)))
(=
(:V (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(sign_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (sign_ext 128 rn) (sign_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(zero_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (zero_ext 128 rn) (zero_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand t5 (if (= (bvadd t3 #x0000000000000001) #x0000000000000000) #b1 #b0))
(bvand (bvnot t5) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor (bvand t5 (extract 63 63 (bvadd t3 #x0000000000000001))) (bvand (bvnot t5) (extract 0 0 (:N nzcv))))
)
)
)
)
((Lo)
(with
(t1 t3 t5)
(and
(= t1 (bvnot rm))
(= t3 (bvadd rn (bvnot rm)))
(= t5 (if (not (= (:C (:flags_in result)) #b1)) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(sign_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (sign_ext 128 rn) (sign_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(zero_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (zero_ext 128 rn) (zero_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand t5 (if (= (bvadd t3 #x0000000000000001) #x0000000000000000) #b1 #b0))
(bvand (bvnot t5) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor (bvand t5 (extract 63 63 (bvadd t3 #x0000000000000001))) (bvand (bvnot t5) (extract 0 0 (:N nzcv))))
)
)
)
)
((Hs)
(with
(t1 t3 t5)
(and
(= t1 (bvnot rm))
(= t3 (bvadd rn (bvnot rm)))
(= t5 (:C (:flags_in result)))
(=
(:V (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(sign_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (sign_ext 128 rn) (sign_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(zero_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (zero_ext 128 rn) (zero_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand t5 (if (= (bvadd t3 #x0000000000000001) #x0000000000000000) #b1 #b0))
(bvand (bvnot t5) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor (bvand t5 (extract 63 63 (bvadd t3 #x0000000000000001))) (bvand (bvnot t5) (extract 0 0 (:N nzcv))))
)
)
)
)
((Ne)
(with
(t1 t3 t5)
(and
(= t1 (bvnot rm))
(= t3 (bvadd rn (bvnot rm)))
(= t5 (if (not (= (:Z (:flags_in result)) #b1)) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(sign_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (sign_ext 128 rn) (sign_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(zero_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (zero_ext 128 rn) (zero_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand t5 (if (= (bvadd t3 #x0000000000000001) #x0000000000000000) #b1 #b0))
(bvand (bvnot t5) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor (bvand t5 (extract 63 63 (bvadd t3 #x0000000000000001))) (bvand (bvnot t5) (extract 0 0 (:N nzcv))))
)
)
)
)
((Eq)
(with
(t1 t3 t5)
(and
(= t1 (bvnot rm))
(= t3 (bvadd rn (bvnot rm)))
(= t5 (:Z (:flags_in result)))
(=
(:V (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(sign_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (sign_ext 128 rn) (sign_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(zero_ext 128 (bvadd t3 #x0000000000000001))
(bvadd (bvadd (zero_ext 128 rn) (zero_ext 128 t1)) #x00000000000000000000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand t5 (if (= (bvadd t3 #x0000000000000001) #x0000000000000000) #b1 #b0))
(bvand (bvnot t5) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor (bvand t5 (extract 63 63 (bvadd t3 #x0000000000000001))) (bvand (bvnot t5) (extract 0 0 (:N nzcv))))
)
)
)
)
)
)
((Size32)
(match
cond
((Le)
(with
(t1 t3 t7)
(and
(= t1 (bvnot (extract 31 0 rm)))
(= t3 (bvadd (extract 31 0 rn) (bvnot (extract 31 0 rm))))
(= t7 (if (not (and (= (:N (:flags_in result)) (:V (:flags_in result))) (= (:Z (:flags_in result)) #b0))) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t7
(bvnot
(if
(=
(sign_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t7) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t7
(bvnot
(if
(=
(zero_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t7) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor (bvand t7 (if (= (bvadd t3 #x00000001) #x00000000) #b1 #b0)) (bvand (bvnot t7) (extract 0 0 (:Z nzcv))))
)
(=
(:N (:flags_out result))
(bvor (bvand t7 (extract 31 31 (bvadd t3 #x00000001))) (bvand (bvnot t7) (extract 0 0 (:N nzcv))))
)
)
)
)
((Gt)
(with
(t1 t3 t7)
(and
(= t1 (bvnot (extract 31 0 rm)))
(= t3 (bvadd (extract 31 0 rn) (bvnot (extract 31 0 rm))))
(= t7 (bvand (if (= (:N (:flags_in result)) (:V (:flags_in result))) #b1 #b0) (bvnot (:Z (:flags_in result)))))
(=
(:V (:flags_out result))
(bvor
(bvand
t7
(bvnot
(if
(=
(sign_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t7) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t7
(bvnot
(if
(=
(zero_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t7) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor (bvand t7 (if (= (bvadd t3 #x00000001) #x00000000) #b1 #b0)) (bvand (bvnot t7) (extract 0 0 (:Z nzcv))))
)
(=
(:N (:flags_out result))
(bvor (bvand t7 (extract 31 31 (bvadd t3 #x00000001))) (bvand (bvnot t7) (extract 0 0 (:N nzcv))))
)
)
)
)
((Lt)
(with
(t1 t3 t6)
(and
(= t1 (bvnot (extract 31 0 rm)))
(= t3 (bvadd (extract 31 0 rn) (bvnot (extract 31 0 rm))))
(= t6 (if (not (= (:N (:flags_in result)) (:V (:flags_in result)))) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t6
(bvnot
(if
(=
(sign_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t6) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t6
(bvnot
(if
(=
(zero_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t6) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor (bvand t6 (if (= (bvadd t3 #x00000001) #x00000000) #b1 #b0)) (bvand (bvnot t6) (extract 0 0 (:Z nzcv))))
)
(=
(:N (:flags_out result))
(bvor (bvand t6 (extract 31 31 (bvadd t3 #x00000001))) (bvand (bvnot t6) (extract 0 0 (:N nzcv))))
)
)
)
)
((Ge)
(with
(t1 t3 t6)
(and
(= t1 (bvnot (extract 31 0 rm)))
(= t3 (bvadd (extract 31 0 rn) (bvnot (extract 31 0 rm))))
(= t6 (if (= (:N (:flags_in result)) (:V (:flags_in result))) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t6
(bvnot
(if
(=
(sign_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t6) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t6
(bvnot
(if
(=
(zero_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t6) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor (bvand t6 (if (= (bvadd t3 #x00000001) #x00000000) #b1 #b0)) (bvand (bvnot t6) (extract 0 0 (:Z nzcv))))
)
(=
(:N (:flags_out result))
(bvor (bvand t6 (extract 31 31 (bvadd t3 #x00000001))) (bvand (bvnot t6) (extract 0 0 (:N nzcv))))
)
)
)
)
((Ls)
(with
(t1 t3 t6)
(and
(= t1 (bvnot (extract 31 0 rm)))
(= t3 (bvadd (extract 31 0 rn) (bvnot (extract 31 0 rm))))
(= t6 (if (not (and (= (:C (:flags_in result)) #b1) (= (:Z (:flags_in result)) #b0))) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t6
(bvnot
(if
(=
(sign_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t6) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t6
(bvnot
(if
(=
(zero_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t6) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor (bvand t6 (if (= (bvadd t3 #x00000001) #x00000000) #b1 #b0)) (bvand (bvnot t6) (extract 0 0 (:Z nzcv))))
)
(=
(:N (:flags_out result))
(bvor (bvand t6 (extract 31 31 (bvadd t3 #x00000001))) (bvand (bvnot t6) (extract 0 0 (:N nzcv))))
)
)
)
)
((Hi)
(with
(t1 t3 t6)
(and
(= t1 (bvnot (extract 31 0 rm)))
(= t3 (bvadd (extract 31 0 rn) (bvnot (extract 31 0 rm))))
(= t6 (bvand (:C (:flags_in result)) (bvnot (:Z (:flags_in result)))))
(=
(:V (:flags_out result))
(bvor
(bvand
t6
(bvnot
(if
(=
(sign_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t6) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t6
(bvnot
(if
(=
(zero_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t6) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor (bvand t6 (if (= (bvadd t3 #x00000001) #x00000000) #b1 #b0)) (bvand (bvnot t6) (extract 0 0 (:Z nzcv))))
)
(=
(:N (:flags_out result))
(bvor (bvand t6 (extract 31 31 (bvadd t3 #x00000001))) (bvand (bvnot t6) (extract 0 0 (:N nzcv))))
)
)
)
)
((Vc)
(with
(t1 t3 t5)
(and
(= t1 (bvnot (extract 31 0 rm)))
(= t3 (bvadd (extract 31 0 rn) (bvnot (extract 31 0 rm))))
(= t5 (if (not (= (:V (:flags_in result)) #b1)) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(sign_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(zero_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor (bvand t5 (if (= (bvadd t3 #x00000001) #x00000000) #b1 #b0)) (bvand (bvnot t5) (extract 0 0 (:Z nzcv))))
)
(=
(:N (:flags_out result))
(bvor (bvand t5 (extract 31 31 (bvadd t3 #x00000001))) (bvand (bvnot t5) (extract 0 0 (:N nzcv))))
)
)
)
)
((Vs)
(with
(t1 t3 t5)
(and
(= t1 (bvnot (extract 31 0 rm)))
(= t3 (bvadd (extract 31 0 rn) (bvnot (extract 31 0 rm))))
(= t5 (:V (:flags_in result)))
(=
(:V (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(sign_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(zero_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor (bvand t5 (if (= (bvadd t3 #x00000001) #x00000000) #b1 #b0)) (bvand (bvnot t5) (extract 0 0 (:Z nzcv))))
)
(=
(:N (:flags_out result))
(bvor (bvand t5 (extract 31 31 (bvadd t3 #x00000001))) (bvand (bvnot t5) (extract 0 0 (:N nzcv))))
)
)
)
)
((Pl)
(with
(t1 t3 t5)
(and
(= t1 (bvnot (extract 31 0 rm)))
(= t3 (bvadd (extract 31 0 rn) (bvnot (extract 31 0 rm))))
(= t5 (if (not (= (:N (:flags_in result)) #b1)) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(sign_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(zero_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor (bvand t5 (if (= (bvadd t3 #x00000001) #x00000000) #b1 #b0)) (bvand (bvnot t5) (extract 0 0 (:Z nzcv))))
)
(=
(:N (:flags_out result))
(bvor (bvand t5 (extract 31 31 (bvadd t3 #x00000001))) (bvand (bvnot t5) (extract 0 0 (:N nzcv))))
)
)
)
)
((Mi)
(with
(t1 t3 t5)
(and
(= t1 (bvnot (extract 31 0 rm)))
(= t3 (bvadd (extract 31 0 rn) (bvnot (extract 31 0 rm))))
(= t5 (:N (:flags_in result)))
(=
(:V (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(sign_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(zero_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor (bvand t5 (if (= (bvadd t3 #x00000001) #x00000000) #b1 #b0)) (bvand (bvnot t5) (extract 0 0 (:Z nzcv))))
)
(=
(:N (:flags_out result))
(bvor (bvand t5 (extract 31 31 (bvadd t3 #x00000001))) (bvand (bvnot t5) (extract 0 0 (:N nzcv))))
)
)
)
)
((Lo)
(with
(t1 t3 t5)
(and
(= t1 (bvnot (extract 31 0 rm)))
(= t3 (bvadd (extract 31 0 rn) (bvnot (extract 31 0 rm))))
(= t5 (if (not (= (:C (:flags_in result)) #b1)) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(sign_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(zero_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor (bvand t5 (if (= (bvadd t3 #x00000001) #x00000000) #b1 #b0)) (bvand (bvnot t5) (extract 0 0 (:Z nzcv))))
)
(=
(:N (:flags_out result))
(bvor (bvand t5 (extract 31 31 (bvadd t3 #x00000001))) (bvand (bvnot t5) (extract 0 0 (:N nzcv))))
)
)
)
)
((Hs)
(with
(t1 t3 t5)
(and
(= t1 (bvnot (extract 31 0 rm)))
(= t3 (bvadd (extract 31 0 rn) (bvnot (extract 31 0 rm))))
(= t5 (:C (:flags_in result)))
(=
(:V (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(sign_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(zero_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor (bvand t5 (if (= (bvadd t3 #x00000001) #x00000000) #b1 #b0)) (bvand (bvnot t5) (extract 0 0 (:Z nzcv))))
)
(=
(:N (:flags_out result))
(bvor (bvand t5 (extract 31 31 (bvadd t3 #x00000001))) (bvand (bvnot t5) (extract 0 0 (:N nzcv))))
)
)
)
)
((Ne)
(with
(t1 t3 t5)
(and
(= t1 (bvnot (extract 31 0 rm)))
(= t3 (bvadd (extract 31 0 rn) (bvnot (extract 31 0 rm))))
(= t5 (if (not (= (:Z (:flags_in result)) #b1)) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(sign_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(zero_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor (bvand t5 (if (= (bvadd t3 #x00000001) #x00000000) #b1 #b0)) (bvand (bvnot t5) (extract 0 0 (:Z nzcv))))
)
(=
(:N (:flags_out result))
(bvor (bvand t5 (extract 31 31 (bvadd t3 #x00000001))) (bvand (bvnot t5) (extract 0 0 (:N nzcv))))
)
)
)
)
((Eq)
(with
(t1 t3 t5)
(and
(= t1 (bvnot (extract 31 0 rm)))
(= t3 (bvadd (extract 31 0 rn) (bvnot (extract 31 0 rm))))
(= t5 (:Z (:flags_in result)))
(=
(:V (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(sign_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t5
(bvnot
(if
(=
(zero_ext 64 (bvadd t3 #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 t1)) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t5) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor (bvand t5 (if (= (bvadd t3 #x00000001) #x00000000) #b1 #b0)) (bvand (bvnot t5) (extract 0 0 (:Z nzcv))))
)
(=
(:N (:flags_out result))
(bvor (bvand t5 (extract 31 31 (bvadd t3 #x00000001))) (bvand (bvnot t5) (extract 0 0 (:N nzcv))))
)
)
)
)
)
)
)
)
(require
(match
size
((Size64)
(match
cond
((Le) true)
((Gt) true)
((Lt) true)
((Ge) true)
((Ls) true)
((Hi) true)
((Vc) true)
((Vs) true)
((Pl) true)
((Mi) true)
((Lo) true)
((Hs) true)
((Ne) true)
((Eq) true)
)
)
((Size32)
(match
cond
((Le) true)
((Gt) true)
((Lt) true)
((Ge) true)
((Ls) true)
((Hi) true)
((Vc) true)
((Vs) true)
((Pl) true)
((Mi) true)
((Lo) true)
((Hs) true)
((Ne) true)
((Eq) true)
)
)
)
)
)
(attr MInst.CCmpImm (tag isaspec_generated))
(spec
(MInst.CCmpImm size rn imm nzcv cond)
(provide
(match
size
((Size64)
(match
cond
((Le)
(with
(t3)
(and
(= t3 (if (not (and (= (:N (:flags_in result)) (:V (:flags_in result))) (= (:Z (:flags_in result)) #b0))) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t3
(bvnot
(if
(=
(sign_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (sign_ext 128 rn) (sign_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t3) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t3
(bvnot
(if
(=
(zero_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (zero_ext 128 rn) (zero_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t3) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t3
(if (= (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001) #x0000000000000000) #b1 #b0)
)
(bvand (bvnot t3) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t3 (extract 63 63 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001)))
(bvand (bvnot t3) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Gt)
(with
(t3)
(and
(= t3 (bvand (if (= (:N (:flags_in result)) (:V (:flags_in result))) #b1 #b0) (bvnot (:Z (:flags_in result)))))
(=
(:V (:flags_out result))
(bvor
(bvand
t3
(bvnot
(if
(=
(sign_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (sign_ext 128 rn) (sign_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t3) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t3
(bvnot
(if
(=
(zero_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (zero_ext 128 rn) (zero_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t3) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t3
(if (= (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001) #x0000000000000000) #b1 #b0)
)
(bvand (bvnot t3) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t3 (extract 63 63 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001)))
(bvand (bvnot t3) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Lt)
(with
(t2)
(and
(= t2 (if (not (= (:N (:flags_in result)) (:V (:flags_in result)))) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t2
(bvnot
(if
(=
(sign_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (sign_ext 128 rn) (sign_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t2) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t2
(bvnot
(if
(=
(zero_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (zero_ext 128 rn) (zero_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t2) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t2
(if (= (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001) #x0000000000000000) #b1 #b0)
)
(bvand (bvnot t2) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t2 (extract 63 63 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001)))
(bvand (bvnot t2) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Ge)
(with
(t2)
(and
(= t2 (if (= (:N (:flags_in result)) (:V (:flags_in result))) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t2
(bvnot
(if
(=
(sign_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (sign_ext 128 rn) (sign_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t2) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t2
(bvnot
(if
(=
(zero_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (zero_ext 128 rn) (zero_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t2) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t2
(if (= (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001) #x0000000000000000) #b1 #b0)
)
(bvand (bvnot t2) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t2 (extract 63 63 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001)))
(bvand (bvnot t2) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Ls)
(with
(t2)
(and
(= t2 (if (not (and (= (:C (:flags_in result)) #b1) (= (:Z (:flags_in result)) #b0))) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t2
(bvnot
(if
(=
(sign_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (sign_ext 128 rn) (sign_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t2) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t2
(bvnot
(if
(=
(zero_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (zero_ext 128 rn) (zero_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t2) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t2
(if (= (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001) #x0000000000000000) #b1 #b0)
)
(bvand (bvnot t2) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t2 (extract 63 63 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001)))
(bvand (bvnot t2) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Hi)
(with
(t2)
(and
(= t2 (bvand (:C (:flags_in result)) (bvnot (:Z (:flags_in result)))))
(=
(:V (:flags_out result))
(bvor
(bvand
t2
(bvnot
(if
(=
(sign_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (sign_ext 128 rn) (sign_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t2) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t2
(bvnot
(if
(=
(zero_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (zero_ext 128 rn) (zero_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t2) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t2
(if (= (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001) #x0000000000000000) #b1 #b0)
)
(bvand (bvnot t2) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t2 (extract 63 63 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001)))
(bvand (bvnot t2) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Vc)
(with
(t1)
(and
(= t1 (if (not (= (:V (:flags_in result)) #b1)) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(sign_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (sign_ext 128 rn) (sign_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(zero_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (zero_ext 128 rn) (zero_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t1
(if (= (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001) #x0000000000000000) #b1 #b0)
)
(bvand (bvnot t1) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t1 (extract 63 63 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001)))
(bvand (bvnot t1) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Vs)
(with
(t1)
(and
(= t1 (:V (:flags_in result)))
(=
(:V (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(sign_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (sign_ext 128 rn) (sign_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(zero_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (zero_ext 128 rn) (zero_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t1
(if (= (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001) #x0000000000000000) #b1 #b0)
)
(bvand (bvnot t1) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t1 (extract 63 63 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001)))
(bvand (bvnot t1) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Pl)
(with
(t1)
(and
(= t1 (if (not (= (:N (:flags_in result)) #b1)) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(sign_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (sign_ext 128 rn) (sign_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(zero_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (zero_ext 128 rn) (zero_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t1
(if (= (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001) #x0000000000000000) #b1 #b0)
)
(bvand (bvnot t1) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t1 (extract 63 63 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001)))
(bvand (bvnot t1) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Mi)
(with
(t1)
(and
(= t1 (:N (:flags_in result)))
(=
(:V (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(sign_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (sign_ext 128 rn) (sign_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(zero_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (zero_ext 128 rn) (zero_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t1
(if (= (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001) #x0000000000000000) #b1 #b0)
)
(bvand (bvnot t1) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t1 (extract 63 63 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001)))
(bvand (bvnot t1) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Lo)
(with
(t1)
(and
(= t1 (if (not (= (:C (:flags_in result)) #b1)) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(sign_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (sign_ext 128 rn) (sign_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(zero_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (zero_ext 128 rn) (zero_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t1
(if (= (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001) #x0000000000000000) #b1 #b0)
)
(bvand (bvnot t1) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t1 (extract 63 63 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001)))
(bvand (bvnot t1) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Hs)
(with
(t1)
(and
(= t1 (:C (:flags_in result)))
(=
(:V (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(sign_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (sign_ext 128 rn) (sign_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(zero_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (zero_ext 128 rn) (zero_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t1
(if (= (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001) #x0000000000000000) #b1 #b0)
)
(bvand (bvnot t1) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t1 (extract 63 63 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001)))
(bvand (bvnot t1) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Ne)
(with
(t1)
(and
(= t1 (if (not (= (:Z (:flags_in result)) #b1)) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(sign_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (sign_ext 128 rn) (sign_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(zero_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (zero_ext 128 rn) (zero_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t1
(if (= (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001) #x0000000000000000) #b1 #b0)
)
(bvand (bvnot t1) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t1 (extract 63 63 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001)))
(bvand (bvnot t1) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Eq)
(with
(t1)
(and
(= t1 (:Z (:flags_in result)))
(=
(:V (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(sign_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (sign_ext 128 rn) (sign_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(zero_ext 128 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001))
(bvadd
(bvadd (zero_ext 128 rn) (zero_ext 128 (bvnot (zero_ext 64 (extract 4 0 imm)))))
#x00000000000000000000000000000001
)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t1
(if (= (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001) #x0000000000000000) #b1 #b0)
)
(bvand (bvnot t1) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t1 (extract 63 63 (bvadd (bvadd rn (bvnot (zero_ext 64 (extract 4 0 imm)))) #x0000000000000001)))
(bvand (bvnot t1) (extract 0 0 (:N nzcv)))
)
)
)
)
)
)
)
((Size32)
(match
cond
((Le)
(with
(t3)
(and
(= t3 (if (not (and (= (:N (:flags_in result)) (:V (:flags_in result))) (= (:Z (:flags_in result)) #b0))) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t3
(bvnot
(if
(=
(sign_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t3) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t3
(bvnot
(if
(=
(zero_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t3) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t3
(if (= (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001) #x00000000) #b1 #b0)
)
(bvand (bvnot t3) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t3 (extract 31 31 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001)))
(bvand (bvnot t3) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Gt)
(with
(t3)
(and
(= t3 (bvand (if (= (:N (:flags_in result)) (:V (:flags_in result))) #b1 #b0) (bvnot (:Z (:flags_in result)))))
(=
(:V (:flags_out result))
(bvor
(bvand
t3
(bvnot
(if
(=
(sign_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t3) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t3
(bvnot
(if
(=
(zero_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t3) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t3
(if (= (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001) #x00000000) #b1 #b0)
)
(bvand (bvnot t3) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t3 (extract 31 31 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001)))
(bvand (bvnot t3) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Lt)
(with
(t2)
(and
(= t2 (if (not (= (:N (:flags_in result)) (:V (:flags_in result)))) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t2
(bvnot
(if
(=
(sign_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t2) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t2
(bvnot
(if
(=
(zero_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t2) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t2
(if (= (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001) #x00000000) #b1 #b0)
)
(bvand (bvnot t2) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t2 (extract 31 31 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001)))
(bvand (bvnot t2) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Ge)
(with
(t2)
(and
(= t2 (if (= (:N (:flags_in result)) (:V (:flags_in result))) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t2
(bvnot
(if
(=
(sign_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t2) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t2
(bvnot
(if
(=
(zero_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t2) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t2
(if (= (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001) #x00000000) #b1 #b0)
)
(bvand (bvnot t2) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t2 (extract 31 31 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001)))
(bvand (bvnot t2) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Ls)
(with
(t2)
(and
(= t2 (if (not (and (= (:C (:flags_in result)) #b1) (= (:Z (:flags_in result)) #b0))) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t2
(bvnot
(if
(=
(sign_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t2) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t2
(bvnot
(if
(=
(zero_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t2) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t2
(if (= (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001) #x00000000) #b1 #b0)
)
(bvand (bvnot t2) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t2 (extract 31 31 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001)))
(bvand (bvnot t2) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Hi)
(with
(t2)
(and
(= t2 (bvand (:C (:flags_in result)) (bvnot (:Z (:flags_in result)))))
(=
(:V (:flags_out result))
(bvor
(bvand
t2
(bvnot
(if
(=
(sign_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t2) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t2
(bvnot
(if
(=
(zero_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t2) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t2
(if (= (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001) #x00000000) #b1 #b0)
)
(bvand (bvnot t2) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t2 (extract 31 31 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001)))
(bvand (bvnot t2) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Vc)
(with
(t1)
(and
(= t1 (if (not (= (:V (:flags_in result)) #b1)) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(sign_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(zero_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t1
(if (= (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001) #x00000000) #b1 #b0)
)
(bvand (bvnot t1) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t1 (extract 31 31 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001)))
(bvand (bvnot t1) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Vs)
(with
(t1)
(and
(= t1 (:V (:flags_in result)))
(=
(:V (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(sign_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(zero_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t1
(if (= (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001) #x00000000) #b1 #b0)
)
(bvand (bvnot t1) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t1 (extract 31 31 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001)))
(bvand (bvnot t1) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Pl)
(with
(t1)
(and
(= t1 (if (not (= (:N (:flags_in result)) #b1)) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(sign_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(zero_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t1
(if (= (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001) #x00000000) #b1 #b0)
)
(bvand (bvnot t1) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t1 (extract 31 31 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001)))
(bvand (bvnot t1) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Mi)
(with
(t1)
(and
(= t1 (:N (:flags_in result)))
(=
(:V (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(sign_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(zero_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t1
(if (= (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001) #x00000000) #b1 #b0)
)
(bvand (bvnot t1) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t1 (extract 31 31 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001)))
(bvand (bvnot t1) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Lo)
(with
(t1)
(and
(= t1 (if (not (= (:C (:flags_in result)) #b1)) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(sign_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(zero_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t1
(if (= (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001) #x00000000) #b1 #b0)
)
(bvand (bvnot t1) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t1 (extract 31 31 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001)))
(bvand (bvnot t1) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Hs)
(with
(t1)
(and
(= t1 (:C (:flags_in result)))
(=
(:V (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(sign_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(zero_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t1
(if (= (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001) #x00000000) #b1 #b0)
)
(bvand (bvnot t1) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t1 (extract 31 31 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001)))
(bvand (bvnot t1) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Ne)
(with
(t1)
(and
(= t1 (if (not (= (:Z (:flags_in result)) #b1)) #b1 #b0))
(=
(:V (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(sign_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(zero_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t1
(if (= (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001) #x00000000) #b1 #b0)
)
(bvand (bvnot t1) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t1 (extract 31 31 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001)))
(bvand (bvnot t1) (extract 0 0 (:N nzcv)))
)
)
)
)
)
((Eq)
(with
(t1)
(and
(= t1 (:Z (:flags_in result)))
(=
(:V (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(sign_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (sign_ext 64 (extract 31 0 rn)) (sign_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:V nzcv)))
)
)
(=
(:C (:flags_out result))
(bvor
(bvand
t1
(bvnot
(if
(=
(zero_ext 64 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001))
(bvadd (bvadd (zero_ext 64 (extract 31 0 rn)) (zero_ext 64 (bvnot (zero_ext 32 (extract 4 0 imm))))) #x0000000000000001)
)
#b1
#b0
)
)
)
(bvand (bvnot t1) (extract 0 0 (:C nzcv)))
)
)
(=
(:Z (:flags_out result))
(bvor
(bvand
t1
(if (= (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001) #x00000000) #b1 #b0)
)
(bvand (bvnot t1) (extract 0 0 (:Z nzcv)))
)
)
(=
(:N (:flags_out result))
(bvor
(bvand t1 (extract 31 31 (bvadd (bvadd (extract 31 0 rn) (bvnot (zero_ext 32 (extract 4 0 imm)))) #x00000001)))
(bvand (bvnot t1) (extract 0 0 (:N nzcv)))
)
)
)
)
)
)
)
)
)
(require
(match
size
((Size64)
(match
cond
((Le) true)
((Gt) true)
((Lt) true)
((Ge) true)
((Ls) true)
((Hi) true)
((Vc) true)
((Vs) true)
((Pl) true)
((Mi) true)
((Lo) true)
((Hs) true)
((Ne) true)
((Eq) true)
)
)
((Size32)
(match
cond
((Le) true)
((Gt) true)
((Lt) true)
((Ge) true)
((Ls) true)
((Hi) true)
((Vc) true)
((Vs) true)
((Pl) true)
((Mi) true)
((Lo) true)
((Hs) true)
((Ne) true)
((Eq) true)
)
)
)
)
)