From bd8e60d160f20945e7234f30536a1299dd0b07a2 Mon Sep 17 00:00:00 2001 From: Emilia Dreamer Date: Tue, 14 Dec 2021 09:56:10 +0200 Subject: [PATCH] Mark bswap32 instrinsic with interpreter primitive annotation --- src/intrinsics.cr | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intrinsics.cr b/src/intrinsics.cr index 063dbc9995a5..0c3af3f6ef2d 100644 --- a/src/intrinsics.cr +++ b/src/intrinsics.cr @@ -53,6 +53,7 @@ lib LibIntrinsics fun bitreverse32 = "llvm.bitreverse.i32"(id : UInt32) : UInt32 fun bitreverse16 = "llvm.bitreverse.i16"(id : UInt16) : UInt16 + {% if flag?(:interpreted) %} @[Primitive(:interpreter_intrinsics_bswap32)] {% end %} fun bswap32 = "llvm.bswap.i32"(id : UInt32) : UInt32 {% if flag?(:interpreted) %} @[Primitive(:interpreter_intrinsics_bswap16)] {% end %}