diff options
| author | Duncan Sands <baldrick@free.fr> | 2012-02-10 14:31:24 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2012-02-10 14:31:24 +0000 |
| commit | 26641d7c029d13c766b723e2d1d47fc78ea3c296 (patch) | |
| tree | dace24f66701848a0b086e65c0d4da0376c1402c /llvm/test/Transforms | |
| parent | bf48ac622a514818c0b8873fc21894758a438609 (diff) | |
| download | bcm5719-llvm-26641d7c029d13c766b723e2d1d47fc78ea3c296.tar.gz bcm5719-llvm-26641d7c029d13c766b723e2d1d47fc78ea3c296.zip | |
Fix PR11948: the result type of an icmp may be a vector of boolean -
don't assume it is a boolean.
llvm-svn: 150247
Diffstat (limited to 'llvm/test/Transforms')
| -rw-r--r-- | llvm/test/Transforms/InstSimplify/compare.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstSimplify/compare.ll b/llvm/test/Transforms/InstSimplify/compare.ll index 1ca23554aef..0c4153fa308 100644 --- a/llvm/test/Transforms/InstSimplify/compare.ll +++ b/llvm/test/Transforms/InstSimplify/compare.ll @@ -415,3 +415,10 @@ define <2 x i1> @vectorselect1(<2 x i1> %cond) { ret <2 x i1> %c ; CHECK: ret <2 x i1> %cond } + +define <2 x i1> @vectorselectcrash(i32 %arg1) { ; PR11948 + %tobool40 = icmp ne i32 %arg1, 0 + %cond43 = select i1 %tobool40, <2 x i16> <i16 -5, i16 66>, <2 x i16> <i16 46, i16 1> + %cmp45 = icmp ugt <2 x i16> %cond43, <i16 73, i16 21> + ret <2 x i1> %cmp45 +} |

