<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">In this case, does the class complex
support the shift operator? I suspect it does not. If it does then
I suspect you have found a bug in Clang.<br>
<br>
I am wondering why you need compiler support here. Could you not
just add a shift operator to the class complex?<br>
<br>
Bob<br>
On 8/21/2018 12:16 PM, Zhiguo Ge via cfe-users wrote:<br>
</div>
<blockquote
cite="mid:CAOnGMtsAGbJmt0pRoK1gZonWwfCDP76jag63Mz+BBgOr0-AyYw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Hi, All</div>
<div><br>
</div>
<div>I want IR in Clang to such as SHIFT can support complex
number. <br>
</div>
<div>I tried to write the following code: <br>
</div>
<div> complex data1;</div>
<div> complex data2 = data1 >> 4;</div>
<div>The Clang compiler said invalid operands in binary
instructions. <br>
</div>
<div>I guess Clang do the data type check and report the error.
<br>
</div>
<div><br>
</div>
<div>Can anyone help to explain how to make Clang support
complex number for SHIFT IR?</div>
<div><br>
</div>
<div>Thanks a lot!</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
cfe-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-users@lists.llvm.org">cfe-users@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users</a>
</pre>
</blockquote>
<br>
</body>
</html>