summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-11-18 16:49:42 +0000
committerSanjay Patel <spatel@rotateright.com>2018-11-18 16:49:42 +0000
commitbecf03efa1c3723fccb20835c073503e6d97f0d2 (patch)
tree0e717cd96017dc3156fb4899f41414833ca0d78d /llvm/test/CodeGen
parent639c87ef53cda0f8abdd865502e9f11636deb195 (diff)
downloadbcm5719-llvm-becf03efa1c3723fccb20835c073503e6d97f0d2.tar.gz
bcm5719-llvm-becf03efa1c3723fccb20835c073503e6d97f0d2.zip
[ARM] make test immune to improvements in undef simplification
llvm-svn: 347164
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/ARM/umulo-32.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/ARM/umulo-32.ll b/llvm/test/CodeGen/ARM/umulo-32.ll
index 1c8357314c2..cfd132aebcc 100644
--- a/llvm/test/CodeGen/ARM/umulo-32.ll
+++ b/llvm/test/CodeGen/ARM/umulo-32.ll
@@ -2,12 +2,12 @@
%umul.ty = type { i32, i1 }
-define i32 @test1(i32 %a) nounwind {
+define i32 @test1(i32 %a, i1 %x) nounwind {
; CHECK: test1:
; CHECK: muldi3
%tmp0 = tail call %umul.ty @llvm.umul.with.overflow.i32(i32 %a, i32 37)
%tmp1 = extractvalue %umul.ty %tmp0, 0
- %tmp2 = select i1 undef, i32 -1, i32 %tmp1
+ %tmp2 = select i1 %x, i32 -1, i32 %tmp1
ret i32 %tmp2
}
OpenPOWER on IntegriCloud