From 42d262f410357a906d5191027384d9181733c461 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 2 May 2014 12:35:22 +0000 Subject: Allow SelectionDAG::FoldConstantArithmetic to work when it's called with a vector VT but scalar values. llvm-svn: 207835 --- llvm/test/CodeGen/X86/vector-idiv.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'llvm/test/CodeGen/X86/vector-idiv.ll') diff --git a/llvm/test/CodeGen/X86/vector-idiv.ll b/llvm/test/CodeGen/X86/vector-idiv.ll index 5738c94e37b..4c30184a542 100644 --- a/llvm/test/CodeGen/X86/vector-idiv.ll +++ b/llvm/test/CodeGen/X86/vector-idiv.ll @@ -205,3 +205,13 @@ define <8 x i32> @test11(<8 x i32> %a) { ; AVX: vpadd ; AVX: vpmulld } + +define <2 x i16> @test12() { + %I8 = insertelement <2 x i16> zeroinitializer, i16 -1, i32 0 + %I9 = insertelement <2 x i16> %I8, i16 -1, i32 1 + %B9 = urem <2 x i16> %I9, %I9 + ret <2 x i16> %B9 + +; AVX-LABEL: test12: +; AVX: xorps +} -- cgit v1.2.3