repo.or.cz
/
llvm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix a globalopt crash on two Adobe-C++ testcases that the recent
[llvm.git]
/
test
/
Transforms
/
InstCombine
/
fpcast.ll
blob
bc6aa0a6891f658817b5d50bb5c7f7d983a1e3f3
1
; Test some floating point casting cases
2
; RUN: opt < %s -instcombine -S | FileCheck %s
3
4
define i8 @test1() {
5
%x = fptoui float 2.550000e+02 to i8 ; <i8> [#uses=1]
6
ret i8 %x
7
; CHECK: ret i8 -1
8
}
9
10
define i8 @test2() {
11
%x = fptosi float -1.000000e+00 to i8 ; <i8> [#uses=1]
12
ret i8 %x
13
; CHECK: ret i8 -1
14
}
15