File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
matching/src/main/scala/org/kframework/backend/llvm/matching/pattern Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -256,5 +256,25 @@ entry:
256
256
ret i64 %steps
257
257
}
258
258
259
+ define i1 @hook_MINT_eq_32(i32 %0, i32 %1) {
260
+ %ret = icmp eq i32 %0, %1
261
+ ret i1 %ret
262
+ }
263
+
264
+ define i1 @hook_MINT_eq_64(i64 %0, i64 %1) {
265
+ %ret = icmp eq i64 %0, %1
266
+ ret i1 %ret
267
+ }
268
+
269
+ define i1 @hook_MINT_eq_160(i160 %0, i160 %1) {
270
+ %ret = icmp eq i160 %0, %1
271
+ ret i1 %ret
272
+ }
273
+
274
+ define i1 @hook_MINT_eq_256(i256 %0, i256 %1) {
275
+ %ret = icmp eq i256 %0, %1
276
+ ret i1 %ret
277
+ }
278
+
259
279
attributes #0 = { noreturn }
260
280
)LLVM"
Original file line number Diff line number Diff line change @@ -663,6 +663,6 @@ case class MIntS(bitwidth: Int) extends SortCategory {
663
663
matrix.compiledCases,
664
664
matrix.compiledDefault
665
665
)
666
- def equalityFun : String = ???
666
+ def equalityFun : String = " hook_MINT_eq_ " + bitwidth
667
667
override def length (rawLength : Int ): Int = 1 << bitwidth
668
668
}
You can’t perform that action at this time.
0 commit comments