Ulrich Weigand | 3a610eb | 2015-04-01 12:54:25 +0000 | [diff] [blame] | 1 | |
| 2 | // RUN: %clang -target s390x-unknown-linux-gnu %s -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-DEFAULT %s |
| 3 | // CHECK-DEFAULT-NOT: "-target-feature" "+transactional-execution" |
| 4 | // CHECK-DEFAULT-NOT: "-target-feature" "-transactional-execution" |
Ulrich Weigand | 66ff51b | 2015-05-05 19:35:52 +0000 | [diff] [blame] | 5 | // CHECK-DEFAULT-NOT: "-target-feature" "+vector" |
| 6 | // CHECK-DEFAULT-NOT: "-target-feature" "-vector" |
Ulrich Weigand | 3a610eb | 2015-04-01 12:54:25 +0000 | [diff] [blame] | 7 | |
| 8 | // RUN: %clang -target s390x-unknown-linux-gnu %s -mhtm -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-HTM %s |
| 9 | // RUN: %clang -target s390x-unknown-linux-gnu %s -mno-htm -mhtm -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-HTM %s |
| 10 | // CHECK-HTM: "-target-feature" "+transactional-execution" |
| 11 | // CHECK-HTM-NOT: "-target-feature" "-transactional-execution" |
| 12 | |
| 13 | // RUN: %clang -target s390x-unknown-linux-gnu %s -mno-htm -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOHTM %s |
| 14 | // RUN: %clang -target s390x-unknown-linux-gnu %s -mhtm -mno-htm -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOHTM %s |
| 15 | // CHECK-NOHTM: "-target-feature" "-transactional-execution" |
| 16 | // CHECK-NOHTM-NOT: "-target-feature" "+transactional-execution" |
| 17 | |
Ulrich Weigand | 66ff51b | 2015-05-05 19:35:52 +0000 | [diff] [blame] | 18 | // RUN: %clang -target s390x-unknown-linux-gnu %s -mvx -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-VX %s |
| 19 | // RUN: %clang -target s390x-unknown-linux-gnu %s -mno-vx -mvx -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-VX %s |
| 20 | // CHECK-VX: "-target-feature" "+vector" |
| 21 | // CHECK-VX-NOT: "-target-feature" "-vector" |
| 22 | // |
| 23 | // RUN: %clang -target s390x-unknown-linux-gnu %s -mno-vx -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOVX %s |
| 24 | // RUN: %clang -target s390x-unknown-linux-gnu %s -mvx -mno-vx -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOVX %s |
| 25 | // CHECK-NOVX: "-target-feature" "-vector" |
| 26 | // CHECK-NOVX-NOT: "-target-feature" "+vector" |