mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
173215fc06
For Cylone, the instruction "movi.2d vD, #0" is executed incorrectly in some rare circumstances. Work around the issue conservatively by avoiding the instruction entirely. This patch changes CodeGen so that problematic instructions are never generated, and the AsmParser so that an equivalent instruction is used (with a warning). llvm-svn: 320965
10 lines
510 B
ArmAsm
10 lines
510 B
ArmAsm
; RUN: llvm-mc -triple aarch64-apple-ios -mcpu=cyclone %s 2> %t.log | FileCheck %s
|
|
; RUN: FileCheck %s --check-prefix=CHECK-ERR < %t.log
|
|
|
|
; CHECK: movi v3.16b, #0
|
|
; CHECK: movi v7.16b, #0
|
|
; CHECK-ERR: warning: instruction movi.2d with immediate #0 may not function correctly on this CPU, converting to equivalent movi.16b
|
|
; CHECK-ERR: warning: instruction movi.2d with immediate #0 may not function correctly on this CPU, converting to equivalent movi.16b
|
|
movi.2d v3, #0
|
|
movi v7.2d, #0
|