Extends CVTTSS2SI test to test negative numbers

This commit is contained in:
Ryan Houdek 2020-03-22 13:05:34 -07:00
parent eeebfeaec1
commit 71b507f8de

View File

@ -4,7 +4,9 @@
"RAX": "0x1",
"RBX": "0x2",
"RCX": "0x3",
"RDX": "0x4"
"RDX": "0x4",
"RBP": "0xFFFFFFFE",
"RSI": "0xFFFFFFFC"
},
"MemoryRegions": {
"0x100000000": "4096"
@ -34,12 +36,25 @@ mov [rdx + 8 * 6], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 7], rax
mov rax, 0x41424344C0000000
mov [rdx + 8 * 8], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 9], rax
mov rax, 0x41424344C0800000
mov [rdx + 8 * 10], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 11], rax
movapd xmm0, [rdx + 8 * 0]
movapd xmm1, [rdx + 8 * 2]
cvttss2si eax, xmm0
cvttss2si rbx, xmm1
cvttss2si ebp, [rdx + 8 * 8]
cvttss2si rsi, [rdx + 8 * 10]
cvttss2si ecx, [rdx + 8 * 4]
cvttss2si rdx, [rdx + 8 * 6]