From f3654db4588884edbf52f139a2f713e45a8ed9b4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 29 Sep 2010 04:55:40 +0000 Subject: [PATCH] add assembler support for the cvtsd2sil/cvtsd2siq mnemonics, rdar://8456382 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115027 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86InstrSSE.td | 4 ++-- test/MC/AsmParser/X86/x86_instructions.s | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/Target/X86/X86InstrSSE.td b/lib/Target/X86/X86InstrSSE.td index 6c152bb16eb..a34360f4f59 100644 --- a/lib/Target/X86/X86InstrSSE.td +++ b/lib/Target/X86/X86InstrSSE.td @@ -652,9 +652,9 @@ defm Int_CVTSS2SI : sse12_cvt_sint<0x2D, VR128, GR32, int_x86_sse_cvtss2si, defm Int_CVTSS2SI64 : sse12_cvt_sint<0x2D, VR128, GR64, int_x86_sse_cvtss2si64, f32mem, load, "cvtss2si{q}">, XS, REX_W; defm CVTSD2SI : sse12_cvt_sint<0x2D, VR128, GR32, int_x86_sse2_cvtsd2si, - f128mem, load, "cvtsd2si">, XD; + f128mem, load, "cvtsd2si{l}">, XD; defm CVTSD2SI64 : sse12_cvt_sint<0x2D, VR128, GR64, int_x86_sse2_cvtsd2si64, - f128mem, load, "cvtsd2si">, XD, REX_W; + f128mem, load, "cvtsd2si{q}">, XD, REX_W; let isAsmParserOnly = 1 in { diff --git a/test/MC/AsmParser/X86/x86_instructions.s b/test/MC/AsmParser/X86/x86_instructions.s index 24f5a27ef6d..19702ce5b04 100644 --- a/test/MC/AsmParser/X86/x86_instructions.s +++ b/test/MC/AsmParser/X86/x86_instructions.s @@ -419,12 +419,17 @@ fstsw (%rax) // rdar://8456382 - cvtsd2si support. cvtsd2si %xmm1, %rax -// CHECK: cvtsd2si %xmm1, %rax +// CHECK: cvtsd2siq %xmm1, %rax // CHECK: encoding: [0xf2,0x48,0x0f,0x2d,0xc1] cvtsd2si %xmm1, %eax -// CHECK: cvtsd2si %xmm1, %eax +// CHECK: cvtsd2sil %xmm1, %eax // CHECK: encoding: [0xf2,0x0f,0x2d,0xc1] +cvtsd2siq %xmm0, %rax // CHECK: cvtsd2siq %xmm0, %rax +cvtsd2sil %xmm0, %eax // CHECK: cvtsd2sil %xmm0, %eax +cvtsd2si %xmm0, %rax // CHECK: cvtsd2siq %xmm0, %rax + + cvttpd2dq %xmm1, %xmm0 // CHECK: cvttpd2dq %xmm1, %xmm0 cvttpd2dq (%rax), %xmm0 // CHECK: cvttpd2dq (%rax), %xmm0 -- 2.34.1