[PATCH] D51165: [CodeGen] emit inline asm clobber list warnings for reserved (cont)
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 7 11:20:41 PDT 2018
craig.topper added a comment.
We're seeing a failure from this on this test case. Looks like somehow the operand after an InlineAsm::Kind_Clobber has become an immediate rather than a register. So the call to getReg fails.
source_filename = "test.c"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@test_mem = dso_local global [16 x i8] c"UUUUUUUUUUUUUUUU", align 16
; Function Attrs: nounwind uwtable
define dso_local void @foo() local_unnamed_addr {
entry:
tail call void asm sideeffect inteldialect "clc\0A\09cmpxchg8b $0\0A\09cmpxchg16b $1\0A\09clc", "=*m,=*m,~{eax},~{edx},~{flags},~{rax},~{rdx},~{dirflag},~{fpsr},~{flags}"([16 x i8]* nonnull @test_mem, [16 x i8]* nonnull @test_mem) #1
ret void
}
Repository:
rL LLVM
https://reviews.llvm.org/D51165
More information about the llvm-commits
mailing list