When an integer is used as an fp immediate we're failing to check the return value of getFP64Imm, so invalid values are silently permitted. Fix this by merging together the integer and real handling.
Details
Details
Diff Detail
Diff Detail
| Paths 
 |  Differential  D31948  
[AArch64] Fix handling of integer fp immediates ClosedPublic Authored by john.brawn on Apr 11 2017, 10:16 AM. 
Details Summary When an integer is used as an fp immediate we're failing to check the return value of getFP64Imm, so invalid values are silently permitted. Fix this by merging together the integer and real handling. 
Diff Detail Event Timelinejohn.brawn added a child revision: D31949: [AArch64] Fix handling of zero immediate in fmov instructions.Comment Actions Add diff context. 
 
 This revision is now accepted and ready to land.Apr 19 2017, 10:03 AM 
Revision Contents 
 
 
Diff 94849 lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
 test/MC/AArch64/basic-a64-diagnostics.s
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Why you don't need to "eat the token" anymore?