X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FAArch64%2Fcond-sel.ll;h=dfc83aacfcfcbe25a0d2a137ede081e2519b2519;hb=28354133435e4e685f4c4443c2d4ca07bd8d739d;hp=5f81cba66cbc85f135103416958a427ddcecdd53;hpb=29f94c72014eaa5d0d3b920686e689e79759cacb;p=oota-llvm.git diff --git a/test/CodeGen/AArch64/cond-sel.ll b/test/CodeGen/AArch64/cond-sel.ll index 5f81cba66cb..dfc83aacfcf 100644 --- a/test/CodeGen/AArch64/cond-sel.ll +++ b/test/CodeGen/AArch64/cond-sel.ll @@ -214,3 +214,20 @@ define void @test_csetm(i32 %lhs, i32 %rhs, i64 %lhs64) { ret void ; CHECK: ret } + +define <1 x i1> @test_wide_comparison(i32 %in) { +; CHECK-LABEL: test_wide_comparison: +; CHECK: cmp w0, #1234 +; CHECK: cset + + %tmp = icmp sgt i32 %in, 1234 + %res = select i1 %tmp, <1 x i1> , <1 x i1> zeroinitializer + ret <1 x i1> %res +} + +define i32 @test_select_undef() { +; CHECK-LABEL: test_select_undef: +; CHECK: ret + %res = select i1 undef, i32 0, i32 42 + ret i32 %res +}