--- nono/exp/optestm88k/optestm88k_gen.cpp 2026/04/29 17:05:04 1.1.1.3 +++ nono/exp/optestm88k/optestm88k_gen.cpp 2026/04/29 17:05:49 1.1.1.6 @@ -33,7 +33,7 @@ // XXX mul/div/divu 命令の FPU disabled のケースは未検査 -#include "header.h" +#include "nono.h" #include "mystring.h" #include #include @@ -41,7 +41,6 @@ #include #include #include -#include #include #include @@ -51,7 +50,7 @@ struct fpi double d {}; uint64 q; // float は h の位置に置く -#if _BYTE_ORDER == _LITTLE_ENDIAN +#if BYTE_ORDER == LITTLE_ENDIAN struct { uint32 l, h; }; struct { float dummy_f, f; }; struct { uint32 dummy_i, i; }; @@ -145,6 +144,7 @@ static constexpr uint32 ntor(uint32 n) { if (n == 1) return 8; if (n == 2) return 10; if (n == 3) return 12; + __unreachable(); } static constexpr uint32 R3(uint32 d, uint32 s1, uint32 s2) { d = ntor(d); @@ -348,7 +348,7 @@ setround(uint32 rm) mode = FE_UPWARD; break; default: - __unreachable(); + PANIC("corrupted rm=%d", rm); } std::fesetround(mode); }