brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 0b97be4 Raw
27 lines · plain
1; Test that the CPU names work.2;3; First ensure the error message matches what we expect.4; CHECK-ERROR: not a recognized processor for this target5 6; RUN: llc < %s -o /dev/null -mtriple=i686-unknown-unknown -mcpu=foobar 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR7 8; Now ensure the error message doesn't occur for valid CPUs.9; CHECK-NO-ERROR-NOT: not a recognized processor for this target10 11; RUN: llc < %s -o /dev/null -mtriple=i686-unknown-unknown -mcpu=generic 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty12 13; RUN: llc < %s -o /dev/null -mtriple=i686-unknown-unknown -mcpu=geode 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty14; RUN: llc < %s -o /dev/null -mtriple=i686-unknown-unknown -mcpu=winchip-c6 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty15; RUN: llc < %s -o /dev/null -mtriple=i686-unknown-unknown -mcpu=winchip2 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty16; RUN: llc < %s -o /dev/null -mtriple=i686-unknown-unknown -mcpu=c3 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty17; RUN: llc < %s -o /dev/null -mtriple=i686-unknown-unknown -mcpu=c3-2 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty18 19;; x86-64 micro-architecture levels.20; RUN: llc %s -filetype=null -mtriple=x86_64 -mcpu=x86-64-v221; RUN: llc %s -filetype=null -mtriple=x86_64 -mcpu=x86-64-v322; RUN: llc %s -filetype=null -mtriple=x86_64 -mcpu=x86-64-v423 24define void @foo() {25  ret void26}27