diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-03-31 21:35:49 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-03-31 21:35:49 +0000 |
commit | 7ebdc37d2bbfc62ff7957b346bb3a91eb6044d5f (patch) | |
tree | 5ca87688eaae944dd8f42780ac69fce5f61441f0 /test | |
parent | 0c630b5f3883aa494eca732f08a547d694d3931a (diff) | |
download | llvm-7ebdc37d2bbfc62ff7957b346bb3a91eb6044d5f.tar.gz llvm-7ebdc37d2bbfc62ff7957b346bb3a91eb6044d5f.tar.bz2 llvm-7ebdc37d2bbfc62ff7957b346bb3a91eb6044d5f.tar.xz |
InstCombine: APFloat can't perform arithmetic on PPC double doubles, don't even try.
Thanks Eli!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128676 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/InstCombine/fcmp.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/fcmp.ll b/test/Transforms/InstCombine/fcmp.ll index b41cdfa7cf..2eb4f05869 100644 --- a/test/Transforms/InstCombine/fcmp.ll +++ b/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 +} |