Jonas Devlieghere | f1c414c | 2018-09-28 12:08:51 +0000 | [diff] [blame] | 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 target |
| 5 | |
| 6 | ; RUN: llc < %s -o /dev/null -mtriple=i686-unknown-unknown -mcpu=foobar 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR |
| 7 | |
| 8 | ; Now ensure the error message doesn't occur for valid CPUs. |
| 9 | ; CHECK-NO-ERROR-NOT: not a recognized processor for this target |
| 10 | |
| 11 | ; RUN: llc < %s -o /dev/null -mtriple=i686-unknown-unknown -mcpu=generic 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty |
| 12 | |
| 13 | ; RUN: llc < %s -o /dev/null -mtriple=i686-unknown-unknown -mcpu=geode 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty |
| 14 | ; RUN: llc < %s -o /dev/null -mtriple=i686-unknown-unknown -mcpu=winchip-c6 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty |
| 15 | ; RUN: llc < %s -o /dev/null -mtriple=i686-unknown-unknown -mcpu=winchip2 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty |
| 16 | ; RUN: llc < %s -o /dev/null -mtriple=i686-unknown-unknown -mcpu=c3 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty |
| 17 | ; RUN: llc < %s -o /dev/null -mtriple=i686-unknown-unknown -mcpu=c3-2 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty |
| 18 | |
| 19 | define void @foo() { |
| 20 | ret void |
| 21 | } |