mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
112102c7fe
We weren't checking the sign of the floating point immediate before translating it to "fmov sD, wzr". Similarly for D-regs. Technically "movi vD.2s, #0x80, lsl #24" would work most of the time, but it's not a blessed alias (and I don't think it should be since people expect writing sD to zero out the high lanes, and there's no dD equivalent). So an error it is. rdar://20455398 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234372 91177308-0d34-0410-b5e6-96231b3b80d8
9 lines
275 B
ArmAsm
9 lines
275 B
ArmAsm
; RUN: not llvm-mc -triple arm64-apple-ios8.0 %s -o /dev/null 2>&1 | FileCheck %s
|
|
|
|
fmov s0, #-0.0
|
|
; CHECK: error: expected compatible register or floating-point constant
|
|
|
|
fmov d0, #-0.0
|
|
; CHECK: error: expected compatible register or floating-point constant
|
|
|