diff options
| author | Shagun Agrawal <agrawalshagun07@gmail.com> | 2025-01-18 19:22:08 +0530 |
|---|---|---|
| committer | Shagun Agrawal <agrawalshagun07@gmail.com> | 2025-01-18 19:22:08 +0530 |
| commit | 4df62e922a99daafaf8d81a85bcb37a51c3fb811 (patch) | |
| tree | f60a49c79534cfa4d1d8f476c6db3f657e7cce4d | |
| parent | 680be9e22fc5d3d3bc6bd0d237e488e3646940a5 (diff) | |
Add tacky double instructions schema
| -rw-r--r-- | src/cljcc/schema.clj | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/cljcc/schema.clj b/src/cljcc/schema.clj index dd3e729..ebddad4 100644 --- a/src/cljcc/schema.clj +++ b/src/cljcc/schema.clj @@ -399,6 +399,30 @@ [:src #'TackyVal] [:dst #'TackyVal]]) +(def TackyDoubleToInt + [:map + [:type [:= :double-to-int]] + [:src #'TackyVal] + [:dst #'TackyVal]]) + +(def TackyDoubleToUInt + [:map + [:type [:= :double-to-uint]] + [:src #'TackyVal] + [:dst #'TackyVal]]) + +(def TackyIntToDouble + [:map + [:type [:= :int-to-double]] + [:src #'TackyVal] + [:dst #'TackyVal]]) + +(def TackyUIntToDouble + [:map + [:type [:= :uint-to-double]] + [:src #'TackyVal] + [:dst #'TackyVal]]) + (def TackyUnary [:map [:type [:= :unary]] |
