mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-12 15:05:06 +00:00
fce288fc91
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81293 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
390 B
LLVM
16 lines
390 B
LLVM
; Test some floating point casting cases
|
|
; RUN: opt < %s -instcombine -S | notcast
|
|
; RUN: opt < %s -instcombine -S | \
|
|
; RUN: egrep {ret i8 \(-1\)\|\(255\)}
|
|
|
|
define i8 @test1() {
|
|
%x = fptoui float 2.550000e+02 to i8 ; <i8> [#uses=1]
|
|
ret i8 %x
|
|
}
|
|
|
|
define i8 @test2() {
|
|
%x = fptosi float -1.000000e+00 to i8 ; <i8> [#uses=1]
|
|
ret i8 %x
|
|
}
|
|
|