We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a37d69c commit 6fd6658Copy full SHA for 6fd6658
1 file changed
cranelift/codegen/src/opts/arithmetic.isle
@@ -33,3 +33,7 @@
33
(if-let false (i64_is_any_sign_power_of_two d))
34
(apply_div_const_magic_s64 (Opcode.Srem) x d))
35
36
+;; new way to represent True
37
+(decl cmp_true (Type) Value)
38
+(rule 0 (cmp_true (ty_int ty)) (iconst_u ty 1))
39
+(rule 1 (cmp_true (ty_vec128 ty)) (iconst_s ty -1))
0 commit comments