brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.8 KiB · c3b1584 Raw
56 lines · plain
1; Targets where we should not enable FastISel.2; RUN: llc -mtriple=mips -mcpu=mips2 -O0 -relocation-model=pic \3; RUN:     -pass-remarks-missed=isel <%s 2>&1 | FileCheck %s4; RUN: llc -mtriple=mips -mcpu=mips3 -O0 -relocation-model=pic -target-abi n64 \5; RUN:     -pass-remarks-missed=isel <%s 2>&1 | FileCheck %s6; RUN: llc -mtriple=mips -mcpu=mips4 -O0 -relocation-model=pic -target-abi n64 \7; RUN:     -pass-remarks-missed=isel <%s 2>&1 | FileCheck %s8 9; RUN: llc -mtriple=mips -mcpu=mips32r6 -O0 -relocation-model=pic \10; RUN:     -pass-remarks-missed=isel <%s 2>&1 | FileCheck %s11 12; RUN: llc -mtriple=mips -mattr=mips16 -O0 -relocation-model=pic \13; RUN:     -pass-remarks-missed=isel <%s 2>&1 | FileCheck %s14 15; RUN: llc -mtriple=mips -mcpu=mips32r2 -mattr=+micromips -O0 -relocation-model=pic \16; RUN:     -pass-remarks-missed=isel <%s 2>&1 | FileCheck %s17; RUN: llc -mtriple=mips -mcpu=mips32r3 -mattr=+micromips -O0 -relocation-model=pic \18; RUN:     -pass-remarks-missed=isel <%s 2>&1 | FileCheck %s19; RUN: llc -mtriple=mips -mcpu=mips32r5 -mattr=+micromips -O0 -relocation-model=pic \20; RUN:     -pass-remarks-missed=isel <%s 2>&1 | FileCheck %s21 22; RUN: llc -mtriple=mips -mcpu=mips64 -O0 -relocation-model=pic -target-abi n64 \23; RUN:     -pass-remarks-missed=isel <%s 2>&1 | FileCheck %s24; RUN: llc -mtriple=mips -mcpu=mips64r2 -O0 -relocation-model=pic -target-abi n64 \25; RUN:     -pass-remarks-missed=isel <%s 2>&1 | FileCheck %s26; RUN: llc -mtriple=mips -mcpu=mips64r3 -O0 -relocation-model=pic -target-abi n64 \27; RUN:     -pass-remarks-missed=isel <%s 2>&1 | FileCheck %s28; RUN: llc -mtriple=mips -mcpu=mips64r5 -O0 -relocation-model=pic -target-abi n64 \29; RUN:     -pass-remarks-missed=isel <%s 2>&1 | FileCheck %s30; RUN: llc -mtriple=mips -mcpu=mips32r6 -O0 -relocation-model=pic \31; RUN:     -pass-remarks-missed=isel <%s 2>&1 | FileCheck %s32 33; Valid targets for FastISel.34; RUN: llc -mtriple=mips -mcpu=mips32r0 -O0 -relocation-model=pic \35; RUN:     -pass-remarks-missed=isel <%s 2>&1 | FileCheck %s -check-prefix=FISEL36; RUN: llc -mtriple=mips -mcpu=mips32r2 -O0 -relocation-model=pic \37; RUN:     -pass-remarks-missed=isel <%s 2>&1 | FileCheck %s -check-prefix=FISEL38 39; The CHECK prefix is being used by those targets that do not support FastISel.40; By checking that we don't emit the "FastISel missed terminator..." message,41; we ensure that we do not generate code through FastISel.42 43; CHECK-NOT: FastISel missed terminator:   ret i64 044 45; The above CHECK will only be valid as long as we *do* emit the missed46; terminator message for targets that support FastISel. If we add support47; for i64 return values in the future, then the following FISEL check-prefix48; will fail and we will have to come up with a new test.49 50; FISEL: FastISel missed terminator:   ret i64 051 52define i64 @foo() {53entry:54  ret i64 055}56