diff options
author | MITSUNARI Shigeo <[email protected]> | 2010-06-01 16:28:14 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2010-06-01 16:28:14 +0900 |
commit | ba203dc8948c9ea9766e900469ba9ec61b4ea933 (patch) | |
tree | 94f6a2bae930243e23fa4867acf46b9f4bfc1ac0 /test/nm_frame.cpp | |
parent | 2965c4c0ba85ae92f61573142a667524736bcbdb (diff) | |
download | xbyak-ba203dc8948c9ea9766e900469ba9ec61b4ea933.tar.gz xbyak-ba203dc8948c9ea9766e900469ba9ec61b4ea933.zip |
use 32bit extended encoding for mov(reg64, imm)
Diffstat (limited to 'test/nm_frame.cpp')
-rw-r--r-- | test/nm_frame.cpp | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/test/nm_frame.cpp b/test/nm_frame.cpp index d63cab1..52fb352 100644 --- a/test/nm_frame.cpp +++ b/test/nm_frame.cpp @@ -6,21 +6,9 @@ using namespace Xbyak; class Sample : public CodeGenerator { void operator=(const Sample&); public: - void gen() - { - try { - #include "nm.cpp" - - } catch (Xbyak::Error err) { - printf("ERR:%s(%d)\n", ConvertErrorToString(err), err); - } catch (...) { - printf("unkwon error\n"); - } - } }; - #define _STR(x) #x #define TEST(syntax) err = true; try { syntax; err = false; } catch (Xbyak::Error) { } catch (...) { } if (!err) printf("should be err:%s;\n", _STR(syntax)) @@ -38,8 +26,14 @@ public: }; int main() { - Sample s; - s.gen(); + try { + Sample s; + s.gen(); + } catch (Xbyak::Error err) { + printf("ERR:%s(%d)\n", Xbyak::ConvertErrorToString(err), err); + } catch (...) { + printf("unknown error\n"); + } ErrorSample es; es.gen(); } |