[clang] [llvm] [RISCV] Mark {vl, vtype} as clobber in inline assembly (PR #128636)
Hank Chang via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 4 20:01:44 PST 2025
HankChang736 wrote:
I tried the test case below without passing 'v' extension in Clang command line argument.
`__attribute__((target("zve32x")))
void test_A(int *p) {
asm volatile("" :: "A"(*p));
}
`
The generated LLVM IR result is :
`; Function Attrs: nounwind
define dso_local void @test_A(ptr noundef %p) local_unnamed_addr #0 {
entry:
tail call void asm sideeffect "", "*A"(ptr elementtype(i32) %p) #1, !srcloc !6
ret void
}
`
https://github.com/llvm/llvm-project/pull/128636
More information about the cfe-commits
mailing list