1 // Check that the target cpu defaults to power4 on AIX. 2 // RUN: %clang -no-canonical-prefixes %s -### -c 2>&1 \ 3 // RUN: -target powerpc-ibm-aix \ 4 // RUN: | FileCheck --check-prefix=CHECK-MCPU-DEFAULT %s 5 // CHECK-MCPU-DEFAULT-NOT: warning: 6 // CHECK-MCPU-DEFAULT: {{.*}}clang{{.*}}" "-cc1" 7 // CHECK-MCPU-DEFAULT: "-target-cpu" "pwr4" 8 9 // Check that the user is able to overwrite the default with '-mcpu'. 10 // RUN: %clang -no-canonical-prefixes %s -### -c 2>&1 \ 11 // RUN: -mcpu=pwr6 \ 12 // RUN: -target powerpc-ibm-aix \ 13 // RUN: | FileCheck --check-prefix=CHECK-MCPU-USER %s 14 // CHECK-MCPU-USER-NOT: warning: 15 // CHECK-MCPU-USER: {{.*}}clang{{.*}}" "-cc1" 16 // CHECK-MCPU-USER: "-target-cpu" "pwr6" 17