Commit 4150f145 authored by Tobias Rapp's avatar Tobias Rapp
Browse files

amd64: Use truncation not rounding for SSE to gp register conversion

parent 9d5202ee
......@@ -600,7 +600,7 @@ CvtSD2SI => {
arity => "variable",
attr_type => "amd64_addr_attr_t",
attr => "amd64_insn_mode_t insn_mode, amd64_op_mode_t op_mode, amd64_addr_t addr",
emit => "cvtsd2si %AM, %D0",
emit => "cvttsd2si %AM, %D0",
},
CvtSS2SI => {
......@@ -610,7 +610,7 @@ CvtSS2SI => {
arity => "variable",
attr_type => "amd64_addr_attr_t",
attr => "amd64_insn_mode_t insn_mode, amd64_op_mode_t op_mode, amd64_addr_t addr",
emit => "cvtss2si %AM, %D0",
emit => "cvttss2si %AM, %D0",
},
CvtSI2SS => {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment