mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-25 14:32:53 +00:00
08f32401a9
opt can handle them by itself. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209689 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
340 B
LLVM
14 lines
340 B
LLVM
; RUN: opt < %s -O3 -S | FileCheck %s
|
|
; Testing half to float conversion.
|
|
|
|
define float @abc() nounwind {
|
|
entry:
|
|
%a = alloca half, align 2
|
|
%.compoundliteral = alloca float, align 4
|
|
store half 0xH4C8D, half* %a, align 2
|
|
%tmp = load half* %a, align 2
|
|
%conv = fpext half %tmp to float
|
|
; CHECK: 0x4032340000000000
|
|
ret float %conv
|
|
}
|