brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · a578b8a Raw
54 lines · plain
1; RUN: llc -filetype=obj -mtriple=mipsel -relocation-model=pic -verify-machineinstrs -mips-tail-calls=1 < %s -o - \2; RUN:   | llvm-objdump -d - | FileCheck %s --check-prefix=PIC323 4; RUN: llc -filetype=obj -mtriple=mipsel -relocation-model=static -verify-machineinstrs -mips-tail-calls=1 < %s -o - \5; RUN:   | llvm-objdump -d - | FileCheck %s --check-prefix=STATIC326 7; RUN: llc -filetype=obj -mtriple=mips64el -relocation-model=pic -mcpu=mips64 -verify-machineinstrs -mips-tail-calls=1 < %s -o - \8; RUN:   | llvm-objdump -d - | FileCheck %s --check-prefix=PIC649 10; RUN: llc -filetype=obj -mtriple=mips64el -relocation-model=static -mcpu=mips64 -verify-machineinstrs -mips-tail-calls=1 < %s -o - \11; RUN:   | llvm-objdump -d - | FileCheck %s --check-prefix=STATIC6412 13; RUN: llc -filetype=obj -mtriple=mipsel -relocation-model=pic -mattr=+micromips -mips-tail-calls=1 < %s -o - \14; RUN:   | llvm-objdump -d - | FileCheck %s --check-prefix=PIC32MM15 16; RUN: llc -filetype=obj -mtriple=mipsel -relocation-model=static -mattr=+micromips -mips-tail-calls=1 < %s -o - \17; RUN:   | llvm-objdump -d - | FileCheck %s --check-prefix=STATIC32MM18 19; RUN: llc -filetype=obj -mtriple=mipsel -relocation-model=pic -mcpu=mips32r6 -mips-tail-calls=1 < %s -o - \20; RUN:   | llvm-objdump -d - | FileCheck %s  --check-prefix=PIC32R621; RUN: llc -filetype=obj -mtriple=mipsel -relocation-model=static -mcpu=mips32r6 -mips-tail-calls=1 < %s -o - \22; RUN:   | llvm-objdump -d - | FileCheck %s --check-prefix=STATIC32R623 24; RUN: llc -filetype=obj -mtriple=mips64el -relocation-model=pic -mcpu=mips64r6 -mips-tail-calls=1 < %s -o - \25; RUN:   | llvm-objdump -d - | FileCheck %s --check-prefix=PIC64R626; RUN: llc -filetype=obj -mtriple=mips64el -relocation-model=static -mcpu=mips64r6 -mips-tail-calls=1 < %s -o - \27; RUN:   | llvm-objdump -d - | FileCheck %s --check-prefix=STATIC64R628 29 30define internal i8 @f2(i8) {31  ret i8 432}33 34define i8 @f1(i8 signext %i) nounwind {35  %a = tail call i8 @f2(i8 %i)36  ret i8 %a37}38 39; ALL:        f1:40; PIC32:      {{[0-9a-z]}}: 08 00 20 03  jr $2541; STATIC32:   {{[0-9a-z]}}: 00 00 00 08  j 042 43; PIC64:      {{[0-9a-z]+}}: 08 00 20 03  jr $2544; STATIC64:   {{[0-9]}}: 00 00 00 08  j 045 46; PIC32MM:    {{[0-9a-z]+}}: b9 45 jrc $2547; STATIC32MM: {{[0-9a-z]}}: 00 d4 00 00 j 048 49; PIC32R6:    {{[0-9a-z]}}: 00 00 19 d8  jrc $2550; STATIC32R6: {{[0-9a-z]}}: 00 00 00 08  j 051 52; PIC64R6:    {{[0-9a-z]+}}: 00 00 19 d8  jrc $2553; STATIC64R6: {{[0-9]}}: 00 00 00 08  j 054