mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-29 13:29:28 +00:00
13 lines
298 B
LLVM
13 lines
298 B
LLVM
|
; RUN: opt < %s -constprop -S | FileCheck %s
|
||
|
|
||
|
define i32 @test1() {
|
||
|
%A = bitcast i32 2139171423 to float
|
||
|
%B = insertelement <1 x float> undef, float %A, i32 0
|
||
|
%C = extractelement <1 x float> %B, i32 0
|
||
|
%D = bitcast float %C to i32
|
||
|
ret i32 %D
|
||
|
; CHECK: @test1
|
||
|
; CHECK: ret i32 2139171423
|
||
|
}
|
||
|
|