mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 22:32:47 +00:00
1b4da6c8ce
Patch by Raoux, Thomas F! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229864 91177308-0d34-0410-b5e6-96231b3b80d8
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
|
|
}
|
|
|