Displaying 2 results from an estimated 2 matches for "4globvar".
Did you mean:
globvar
2017 Aug 03
4
Bug or incorrect use of inline asm?
Hi all,
I stumbled upon either a bug, or we are emitting wrong inline asm code.
The testcase is:
```
source_filename = "testcase.d"
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx"
define void @_D7asanasm3fooFZv() {
%a = alloca [4 x i32], align 32
call void asm sideeffect "movl %ebx, 4+$0",
2017 Aug 04
2
Bug or incorrect use of inline asm?
...Var = global [2 x i32] [i32 66051, i32 66051]
define void @_D7asanasm8offconstFZv() {
call void asm sideeffect "movdqa 4$0, %xmm7", "*m,~{xmm7}"([2 x i32]*
@globVar)
ret void
}
```
results in:
<inline asm>:1:10: error: unexpected token in argument list
movdqa 4globVar(%rip), %xmm7
So in that case, I do have to add the '+' to make it work ("4+$0").
So depending on the pointer argument, I need to write a + or without +,
complicating automatic codegen.
Thanks for the help,
Johan
-------------- next part --------------
An HTML attachment was s...