test.py (5081:2ccce8600a9d) | test.py (6070:3b0f44b3e0e1) |
---|---|
1# Copyright (c) 2007 The Hewlett-Packard Development Company 2# All rights reserved. 3# 4# Redistribution and use of this software in source and binary forms, 5# with or without modification, are permitted provided that the 6# following conditions are met: 7# 8# The software must be used only for Non-Commercial Use which means any --- 43 unchanged lines hidden (view full) --- 52# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 53# 54# Authors: Gabe Black 55 56microcode = ''' 57def macroop TEST_M_R 58{ 59 ld t1, seg, sib, disp | 1# Copyright (c) 2007 The Hewlett-Packard Development Company 2# All rights reserved. 3# 4# Redistribution and use of this software in source and binary forms, 5# with or without modification, are permitted provided that the 6# following conditions are met: 7# 8# The software must be used only for Non-Commercial Use which means any --- 43 unchanged lines hidden (view full) --- 52# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 53# 54# Authors: Gabe Black 55 56microcode = ''' 57def macroop TEST_M_R 58{ 59 ld t1, seg, sib, disp |
60 and t0, t1, reg, flags=(SF, ZF, PF) | 60 and t0, t1, reg, flags=(OF, SF, ZF, PF, CF) |
61}; 62 63def macroop TEST_P_R 64{ 65 rdip t7 66 ld t1, seg, riprel, disp | 61}; 62 63def macroop TEST_P_R 64{ 65 rdip t7 66 ld t1, seg, riprel, disp |
67 and t0, t1, reg, flags=(SF, ZF, PF) | 67 and t0, t1, reg, flags=(OF, SF, ZF, PF, CF) |
68}; 69 70def macroop TEST_R_R 71{ | 68}; 69 70def macroop TEST_R_R 71{ |
72 and t0, reg, regm, flags=(SF, ZF, PF) | 72 and t0, reg, regm, flags=(OF, SF, ZF, PF, CF) |
73}; 74 75def macroop TEST_M_I 76{ 77 ld t1, seg, sib, disp 78 limm t2, imm | 73}; 74 75def macroop TEST_M_I 76{ 77 ld t1, seg, sib, disp 78 limm t2, imm |
79 and t0, t1, t2, flags=(SF, ZF, PF) | 79 and t0, t1, t2, flags=(OF, SF, ZF, PF, CF) |
80}; 81 82def macroop TEST_P_I 83{ 84 rdip t7 85 ld t1, seg, riprel, disp 86 limm t2, imm | 80}; 81 82def macroop TEST_P_I 83{ 84 rdip t7 85 ld t1, seg, riprel, disp 86 limm t2, imm |
87 and t0, t1, t2, flags=(SF, ZF, PF) | 87 and t0, t1, t2, flags=(OF, SF, ZF, PF, CF) |
88}; 89 90def macroop TEST_R_I 91{ 92 limm t1, imm | 88}; 89 90def macroop TEST_R_I 91{ 92 limm t1, imm |
93 and t0, reg, t1, flags=(SF, ZF, PF) | 93 and t0, reg, t1, flags=(OF, SF, ZF, PF, CF) |
94}; 95''' | 94}; 95''' |