Quantcast
Channel: Recent posts
Viewing all articles
Browse latest Browse all 7

icc -masm=intel generating invalid/unrecognized assembly?

$
0
0

Hello,

I am building code that contains some asm() blocks written following Intel assembly syntax. When I compile this code for the MIC with -masm=intel, I get an assembler error, which is not related to the asm() blocks. Attached is a simple repro case that produces the following error:

$icc -masm=intel -mmic repro.c
/tmp/iccNPhpMMas_.s: Assembler messages:
/tmp/iccNPhpMMas_.s:51: Error: operand size mismatch for `vaddpd'

The offending instruction is:

vaddpd    zmm0{k1}, zmm0, QWORD PTR .L_2il0floatpacket.1[rip]{1to8}

I am running icc 13.1.0 under Linux x64. Is Intel-syntax assembly supported under this configuration? Is this a known issue, and is there any workaround (besides rewriting assembly blocks using AT&T syntax)?

Thanks.


Viewing all articles
Browse latest Browse all 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>