diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-05-02 12:35:22 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-05-02 12:35:22 +0000 |
commit | 42d262f410357a906d5191027384d9181733c461 (patch) | |
tree | 28e6775ccd001ecc55830f6b0aa3c75434c74318 /llvm/test/CodeGen/X86/vector-idiv.ll | |
parent | f80d68847dcf2a5923eb1e7acfc50c290fdc8f79 (diff) | |
download | bcm5719-llvm-42d262f410357a906d5191027384d9181733c461.tar.gz bcm5719-llvm-42d262f410357a906d5191027384d9181733c461.zip |
Allow SelectionDAG::FoldConstantArithmetic to work when it's called with a vector VT but scalar values.
llvm-svn: 207835
Diffstat (limited to 'llvm/test/CodeGen/X86/vector-idiv.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/vector-idiv.ll | 10 |
1 files changed, 10 insertions, 0 deletions
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 +} |