Ignore:
Timestamp:
Jul 13, 2015, 2:11:13 PM (4 years ago)
Author:
cameron
Message:

Upgrade LLVM to 3.6.1

Location:
icGREP/icgrep-devel/llvm-3.6.1.src
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/llvm-3.6.1.src/test/CodeGen/Mips/llvm-ir/mul.ll

    r4574 r4664  
    1 ; RUN: llc < %s -march=mips -mcpu=mips2 | FileCheck %s \
    2 ; RUN:    -check-prefix=ALL -check-prefix=M2
    3 ; RUN: llc < %s -march=mips -mcpu=mips32 | FileCheck %s \
    4 ; RUN:    -check-prefix=ALL -check-prefix=32R1-R2 -check-prefix=32R1
    5 ; RUN: llc < %s -march=mips -mcpu=mips32r2 | FileCheck %s \
    6 ; RUN:    -check-prefix=ALL -check-prefix=32R1-R2 -check-prefix=32R2
    7 ; RUN: llc < %s -march=mips -mcpu=mips32r6 | FileCheck %s \
    8 ; RUN:    -check-prefix=ALL -check-prefix=32R6
    9 ; RUN: llc < %s -march=mips64 -mcpu=mips4 | FileCheck %s \
    10 ; RUN:    -check-prefix=ALL -check-prefix=M4
    11 ; RUN: llc < %s -march=mips64 -mcpu=mips64 | FileCheck %s \
    12 ; RUN:    -check-prefix=ALL -check-prefix=64R1-R2
    13 ; RUN: llc < %s -march=mips64 -mcpu=mips64r2 | FileCheck %s \
    14 ; RUN:    -check-prefix=ALL -check-prefix=64R1-R2
    15 ; RUN: llc < %s -march=mips64 -mcpu=mips64r6 | FileCheck %s \
    16 ; RUN:     -check-prefix=ALL -check-prefix=64R6
     1; RUN: llc < %s -march=mips -mcpu=mips2 | FileCheck %s -check-prefix=ALL \
     2; RUN:    -check-prefix=M2 -check-prefix=GP32
     3; RUN: llc < %s -march=mips -mcpu=mips32 | FileCheck %s -check-prefix=ALL \
     4; RUN:    -check-prefix=32R1-R2 -check-prefix=GP32
     5; RUN: llc < %s -march=mips -mcpu=mips32r2 | FileCheck %s -check-prefix=ALL \
     6; RUN:    -check-prefix=32R1-R2 -check-prefix=32R2 -check-prefix=GP32
     7; RUN: llc < %s -march=mips -mcpu=mips32r6 | FileCheck %s -check-prefix=ALL \
     8; RUN:    -check-prefix=32R6 -check-prefix=GP32
     9; RUN: llc < %s -march=mips64 -mcpu=mips4 | FileCheck %s -check-prefix=ALL \
     10; RUN:    -check-prefix=M4 -check-prefix=GP64-NOT-R6
     11; RUN: llc < %s -march=mips64 -mcpu=mips64 | FileCheck %s -check-prefix=ALL \
     12; RUN:    -check-prefix=64R1-R2 -check-prefix=GP64-NOT-R6
     13; RUN: llc < %s -march=mips64 -mcpu=mips64r2 | FileCheck %s -check-prefix=ALL \
     14; RUN:    -check-prefix=64R1-R2 -check-prefix=GP64 -check-prefix=GP64-NOT-R6
     15; RUN: llc < %s -march=mips64 -mcpu=mips64r6 | FileCheck %s -check-prefix=ALL \
     16; RUN:    -check-prefix=64R6
    1717
    1818define signext i1 @mul_i1(i1 signext %a, i1 signext %b) {
     
    180180  ret i64 %r
    181181}
     182
     183define signext i128 @mul_i128(i128 signext %a, i128 signext %b) {
     184entry:
     185; ALL-LABEL: mul_i128:
     186
     187  ; GP32:           lw      $25, %call16(__multi3)($gp)
     188
     189  ; GP64-NOT-R6:    dmult   $4, $7
     190  ; GP64-NOT-R6:    mflo    $[[T0:[0-9]+]]
     191  ; GP64-NOT-R6:    dmult   $5, $6
     192  ; GP64-NOT-R6:    mflo    $[[T1:[0-9]+]]
     193  ; GP64-NOT-R6:    dmultu  $5, $7
     194  ; GP64-NOT-R6:    mflo    $3
     195  ; GP64-NOT-R6:    mfhi    $[[T2:[0-9]+]]
     196  ; GP64-NOT-R6:    daddu   $[[T3:[0-9]+]], $[[T2]], $[[T1]]
     197  ; GP64-NOT-R6:    daddu   $2, $[[T3:[0-9]+]], $[[T0]]
     198
     199  ; 64R6:           dmul    $[[T0:[0-9]+]], $5, $6
     200  ; 64R6:           dmuhu   $[[T1:[0-9]+]], $5, $7
     201  ; 64R6:           daddu   $[[T2:[0-9]+]], $[[T1]], $[[T0]]
     202  ; 64R6:           dmul    $[[T3:[0-9]+]], $4, $7
     203  ; 64R6:           daddu   $2, $[[T2]], $[[T3]]
     204  ; 64R6:           dmul    $3, $5, $7
     205
     206  %r = mul i128 %a, %b
     207  ret i128 %r
     208}
Note: See TracChangeset for help on using the changeset viewer.