Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

[inline asm] TYPE operator support #30226

Open Quuxplusone opened 7 years ago

Quuxplusone commented 7 years ago
Bugzilla Link PR31253
Status NEW
Importance P normal
Reported by Ziv Izhar (ziv.izhar@intel.com)
Reported on 2016-12-04 03:14:46 -0800
Last modified on 2017-04-05 01:31:53 -0700
Version unspecified
Hardware PC All
CC llvm-bugs@lists.llvm.org, marina.yatsina@intel.com
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
There is no support for the TYPE operator.
The operator defined in here by microsoft: https://msdn.microsoft.com/en-
us/library/wxh0awwe.aspx

(compile with -fasm-blocks for the microsoft syntax)
void main(){
        __asm movq mm1, XMMWORD PTR [eax + TYPE int]
}

clang doesn't know this operator.
Quuxplusone commented 7 years ago
A little correction:
XMMWORD -> QWORD

i.e.

void main(){
        __asm movq mm1, QWORD PTR [eax + TYPE int]
}