Lines Matching refs:saturate
51 ; saturate -- signed saturatation function
53 (define-pmacro (saturate mode n i)
917 (define-pmacro (-maddsl arg1 arg2) (saturate SI 32 (add arg1 arg2)))
931 (define-pmacro (-maddsw arg1 arg2) (saturate HI 16 (add arg1 arg2)))
994 (dshmi mcnvslw "Multimedia convert/saturate (long to word)"
999 (set result0 (saturate HI 16 (subword SI rm 0)))
1000 (set result1 (saturate HI 16 (subword SI rm 1)))
1001 (set result2 (saturate HI 16 (subword SI rn 0)))
1002 (set result3 (saturate HI 16 (subword SI rn 1)))
1005 (dshmi mcnvswb "Multimedia convert/saturate (word to byte)"
1011 (set result0 (saturate QI 8 (subword HI rm 0)))
1012 (set result1 (saturate QI 8 (subword HI rm 1)))
1013 (set result2 (saturate QI 8 (subword HI rm 2)))
1014 (set result3 (saturate QI 8 (subword HI rm 3)))
1015 (set result4 (saturate QI 8 (subword HI rn 0)))
1016 (set result5 (saturate QI 8 (subword HI rn 1)))
1017 (set result6 (saturate QI 8 (subword HI rn 2)))
1018 (set result7 (saturate QI 8 (subword HI rn 3)))
1022 (dshmi mcnvswub "Multimedia convert/saturate (word to unsigned byte)"
1073 (set temp (saturate SI 32 (sll temp 1)))
1074 (set result0 (saturate SI 32 (add result0 temp)))
1076 (set temp (saturate SI 32 (sll temp 1)))
1077 (set result1 (saturate SI 32 (add result1 temp)))
1088 (set temp (saturate SI 32 (sll temp 1)))
1089 (set result0 (saturate SI 32 (sub result0 temp)))
1091 (set temp (saturate SI 32 (sll temp 1)))
1092 (set result1 (saturate SI 32 (sub result1 temp)))
1113 (set result0 (saturate SI 32 (sra temp 31)))
1115 (set result1 (saturate SI 32 (sra temp 31)))
1124 (set result0 (saturate HI 16 (sra temp 15)))
1126 (set result1 (saturate HI 16 (sra temp 15)))
1128 (set result2 (saturate HI 16 (sra temp 15)))
1130 (set result3 (saturate HI 16 (sra temp 15)))
1140 (set result0 (saturate HI 16 (sra (add temp c) 15)))
1142 (set result1 (saturate HI 16 (sra (add temp c) 15)))
1144 (set result2 (saturate HI 16 (sra (add temp c) 15)))
1146 (set result3 (saturate HI 16 (sra (add temp c) 15)))
1211 (define-pmacro (-mshaldsl arg) (saturate SI 32 (sll arg (and rn 31))))
1218 (define-pmacro (-mshaldsw arg) (saturate HI 16 (sll arg (and rn 15))))
1243 (set rd (saturate DI 16 (sra rm (and rn 63)))))
1359 (define-pmacro (-msubsl arg1 arg2) (saturate SI 32 (sub arg1 arg2)))
1373 (define-pmacro (-msubsw arg1 arg2) (saturate HI 16 (sub arg1 arg2)))