mirror of
https://github.com/RPCSX/llvm.git
synced 2026-01-31 01:05:23 +01:00
Errata fixes for various errata in different versions of the Leon variants of the Sparc 32 bit processor. The nature of the errata are listed in the comments preceding the errata fix passes. Relevant unit tests are implemented for each of these. Note: Running clang-format has changed a few other lines too, unrelated to the implemented errata fixes. These have been left in as this keeps the code formatting consistent. Differential Revision: http://reviews.llvm.org/D21960 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274856 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
297 B
LLVM
14 lines
297 B
LLVM
; RUN: llc %s -O0 -march=sparc -mcpu=ut699 -o - | FileCheck %s
|
|
|
|
; CHECK: ld [%o0+%lo(.LCPI0_0)], %f0
|
|
; CHECK-NEXT: nop
|
|
|
|
|
|
define float @X() #0 {
|
|
entry:
|
|
%f = alloca float, align 4
|
|
store float 0x3FF3C08320000000, float* %f, align 4
|
|
%0 = load float, float* %f, align 4
|
|
ret float %0
|
|
}
|