diff options
| author | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | 2018-11-16 23:13:38 +0000 |
|---|---|---|
| committer | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | 2018-11-16 23:13:38 +0000 |
| commit | 0ff7c8309d43c9678393e5add2d7550e1480e4f6 (patch) | |
| tree | 0050f5c3505d06927f8006a09bf6f55e35fb8d77 /llvm/test/CodeGen/AArch64 | |
| parent | d146e337edc10e3cefb52c46f69bc523d0bb40ab (diff) | |
| download | bcm5719-llvm-0ff7c8309d43c9678393e5add2d7550e1480e4f6.tar.gz bcm5719-llvm-0ff7c8309d43c9678393e5add2d7550e1480e4f6.zip | |
DAG combiner: fold (select, C, X, undef) -> X
Differential Revision: https://reviews.llvm.org/D54646
llvm-svn: 347110
Diffstat (limited to 'llvm/test/CodeGen/AArch64')
| -rw-r--r-- | llvm/test/CodeGen/AArch64/half.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/AArch64/half.ll b/llvm/test/CodeGen/AArch64/half.ll index 154d85c9bb6..17101908074 100644 --- a/llvm/test/CodeGen/AArch64/half.ll +++ b/llvm/test/CodeGen/AArch64/half.ll @@ -87,9 +87,9 @@ define i16 @test_fccmp(i1 %a) { ;CHECK: fcmp %cmp0 = fcmp ogt half 0xH3333, undef %cmp1 = fcmp ogt half 0xH2222, undef - %x = select i1 %cmp0, i16 0, i16 undef + %x = select i1 %cmp0, i16 0, i16 1 %or = or i1 %cmp1, %cmp0 - %y = select i1 %or, i16 4, i16 undef + %y = select i1 %or, i16 4, i16 1 %r = add i16 %x, %y ret i16 %r } |

