summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-03-31 21:35:49 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-03-31 21:35:49 +0000
commit5291054ef165530ac0b8f3eae650678f549657b1 (patch)
treea6905ef87e9824997e450498f2add3019b28ac0a /llvm/test
parentd20c8d1a17176d2233ec44579824e57a225ecc7a (diff)
downloadbcm5719-llvm-5291054ef165530ac0b8f3eae650678f549657b1.tar.gz
bcm5719-llvm-5291054ef165530ac0b8f3eae650678f549657b1.zip
InstCombine: APFloat can't perform arithmetic on PPC double doubles, don't even try.
Thanks Eli! llvm-svn: 128676
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Transforms/InstCombine/fcmp.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/fcmp.ll b/llvm/test/Transforms/InstCombine/fcmp.ll
index b41cdfa7cf1..2eb4f058692 100644
--- a/llvm/test/Transforms/InstCombine/fcmp.ll
+++ b/llvm/test/Transforms/InstCombine/fcmp.ll
@@ -49,3 +49,12 @@ define i1 @test6(float %x, float %y) nounwind {
; CHECK: @test6
; CHECK-NEXT: fcmp ogt float %x, %y
}
+
+define i1 @test7(float %x) nounwind readnone ssp noredzone {
+ %ext = fpext float %x to ppc_fp128
+ %cmp = fcmp ogt ppc_fp128 %ext, 0xM00000000000000000000000000000000
+ ret i1 %cmp
+; Can't convert ppc_fp128
+; CHECK: @test7
+; CHECK-NEXT: fpext float %x to ppc_fp128
+}
OpenPOWER on IntegriCloud