mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
fix PR6940: sitofp(undef) folds to 0.0, not undef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102358 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,8 +1,19 @@
|
||||
; RUN: opt %s -sccp -S | FileCheck %s
|
||||
|
||||
|
||||
; PR6940
|
||||
define double @test1() {
|
||||
%t = sitofp i32 undef to double
|
||||
ret double %t
|
||||
; CHECK: @test1
|
||||
; CHECK: ret double 0.0
|
||||
}
|
||||
|
||||
|
||||
; rdar://7832370
|
||||
; Check that lots of stuff doesn't get turned into undef.
|
||||
|
||||
define i32 @main() nounwind readnone ssp {
|
||||
define i32 @test2() nounwind readnone ssp {
|
||||
; CHECK: @test2
|
||||
init:
|
||||
br label %control.outer.outer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user