mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 16:31:16 +00:00
1b77bb5628
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223382 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
420 B
LLVM
17 lines
420 B
LLVM
;RUN: llc <%s -mattr=-neon -mattr=-fp-armv8 | FileCheck %s
|
|
target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
|
|
target triple = "aarch64"
|
|
|
|
@t = common global i32 0, align 4
|
|
@x = common global i32 0, align 4
|
|
|
|
define void @foo() {
|
|
entry:
|
|
;CHECK-LABEL: foo:
|
|
;CHECK: __floatsisf
|
|
%0 = load i32* @x, align 4
|
|
%conv = sitofp i32 %0 to float
|
|
store float %conv, float* bitcast (i32* @t to float*), align 4
|
|
ret void
|
|
}
|