Displaying 2 results from an estimated 2 matches for "asanasm".
Did you mean:
asan's
2017 Aug 04
2
Bug or incorrect use of inline asm?
...LLVM appears to be optimizing the addressing mode, and the optimizer
> is being more lenient on this detail so you're getting lucky when the
> +4 can be combined with an existing %rsp offset.
Things break down when part of the offset is a linktime constant:
```
source_filename = "asanasm.d"
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
@globVar = global [2 x i32] [i32 66051, i32 66051]
define void @_D7asanasm8offconstFZv() {
call void asm sideeffect "movdqa 4$0, %xmm7", "*m,~{xmm7}&qu...
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", "=*m,~{memory}"([4 x i32]* %a)
ret void
}
```
When I try to compile this to assembly code with llc, llc errors.
> llc testcase.ll -o testcase.s -O0
<inline asm>:1:16: error: un...