mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
75657ea420
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 llvm-svn: 234372
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
|
|
|