diff options
author | Reed Kotler <rkotler@mips.com> | 2012-10-05 18:27:54 +0000 |
---|---|---|
committer | Reed Kotler <rkotler@mips.com> | 2012-10-05 18:27:54 +0000 |
commit | dfb8dbb4fd97140aa9bf6b9dadbca25665144c09 (patch) | |
tree | 350252ce20358062ff81809484bc66cf93ccec76 /test/CodeGen/Mips/mul.ll | |
parent | ebd7eabca4c090175b71f221e880f8bd937a4523 (diff) |
Patch for integer multiply, signed/unsigned, long/long long.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165322 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips/mul.ll')
-rw-r--r-- | test/CodeGen/Mips/mul.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/mul.ll b/test/CodeGen/Mips/mul.ll new file mode 100644 index 0000000000..4ce801b1c9 --- /dev/null +++ b/test/CodeGen/Mips/mul.ll @@ -0,0 +1,17 @@ +; RUN: llc -march=mipsel -mcpu=mips16 -relocation-model=pic -O3 < %s | FileCheck %s -check-prefix=16 + +@iiii = global i32 5, align 4 +@jjjj = global i32 -6, align 4 +@kkkk = common global i32 0, align 4 + +define void @test() nounwind { +entry: + %0 = load i32* @iiii, align 4 + %1 = load i32* @jjjj, align 4 + %mul = mul nsw i32 %1, %0 +; 16: mult ${{[0-9]+}}, ${{[0-9]+}} +; 16: mflo ${{[0-9]+}} + + store i32 %mul, i32* @kkkk, align 4 + ret void +} |