aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/nm_frame.cpp
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2010-06-01 16:28:14 +0900
committerMITSUNARI Shigeo <[email protected]>2010-06-01 16:28:14 +0900
commitba203dc8948c9ea9766e900469ba9ec61b4ea933 (patch)
tree94f6a2bae930243e23fa4867acf46b9f4bfc1ac0 /test/nm_frame.cpp
parent2965c4c0ba85ae92f61573142a667524736bcbdb (diff)
downloadxbyak-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.cpp22
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();
}