This patch fixes a crash encountered when compiling this code:
... float16_t a; __asm__("fminv %h[a], %[b], %[c].h" : [a] "=r" (a) : [b] "Upl" (b), [c] "w" (c))
The issue here is when using the 'h' modifier for a register
constraint 'r'.
Paths
| Differential D93537
[AArch64] Fix inline assembly parsing crash ClosedPublic Authored by david-arm on Dec 18 2020, 5:42 AM.
Details Summary This patch fixes a crash encountered when compiling this code: ... float16_t a; __asm__("fminv %h[a], %[b], %[c].h" : [a] "=r" (a) : [b] "Upl" (b), [c] "w" (c)) The issue here is when using the 'h' modifier for a register
Diff Detail
Event TimelineHerald added subscribers: danielkiss, hiraditya, kristof.beyls. · View Herald TranscriptDec 18 2020, 5:42 AM
This revision is now accepted and ready to land.Dec 21 2020, 7:24 AM Closed by commit rGa65092040ad4: [SVE] Fix inline assembly parsing crash (authored by david-arm). · Explain WhyJan 4 2021, 1:12 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 314330 llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
llvm/test/CodeGen/AArch64/inline-asm-constraints-bad-sve.ll |
nit: the #1 attribute can be dropped