Skip to content

Commit

Permalink
Add JIT templates for trunc_u(8|16|32)
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterDuke17 committed Oct 16, 2021
1 parent 4e7fa77 commit 530ea7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jit/core_templates.expr
Expand Up @@ -20,6 +20,10 @@

(template: set (copy $1))

(template: trunc_u8 (ucast $1 int_sz 1))
(template: trunc_u16 (ucast $1 int_sz 2))
(template: trunc_u32 (ucast $1 int_sz 4))

(template: trunc_i8 (ucast $1 int_sz 1))
(template: trunc_i16 (ucast $1 int_sz 2))
(template: trunc_i32 (ucast $1 int_sz 4))
Expand Down

0 comments on commit 530ea7d

Please sign in to comment.